Rename countingIdentifiers.py to rep-11.py
This commit is contained in:
@@ -1,6 +0,0 @@
|
|||||||
import numpy as np
|
|
||||||
import pandas as pd
|
|
||||||
|
|
||||||
df = pd.read_csv(r'./Ex2_team13.csv')
|
|
||||||
|
|
||||||
print(df['protocolIdentifier'].value_counts(sort=True))
|
|
||||||
@@ -0,0 +1,10 @@
|
|||||||
|
import numpy as np
|
||||||
|
import pandas as pd
|
||||||
|
|
||||||
|
df = pd.read_csv(r'data/Ex2_team13.csv')
|
||||||
|
|
||||||
|
print(df['protocolIdentifier'].value_counts(sort=True))
|
||||||
|
|
||||||
|
print(df[(df['sourceTransportPort'] == 80) | (df['destinationTransportPort'] == 80)].count())
|
||||||
|
print(df[(df['sourceTransportPort'] == 443) | (df['destinationTransportPort'] == 443)].count())
|
||||||
|
print(df[(df['sourceTransportPort'] == 53) | (df['destinationTransportPort'] == 53)].count())
|
||||||
Reference in New Issue
Block a user