ctf-resources/thm/aoc23/day02/1_packets_captured.py

12 lines
236 B
Python
Raw Permalink Normal View History

2024-07-03 21:06:15 +02:00
#!/usr/bin/env python3
import pandas as pd
import matplotlib.pyplot as plt
df = pd.read_csv('network_traffic.csv')
df.head(5)
# We need to use Pandas count function on the dataframe
# For example: dataframe.count()
print(df.count())