Rename countingIdentifiers.py to rep-11.py
This commit is contained in:
parent
1749aff64c
commit
d2cf27c508
@ -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))
|
|
||||||
10
ex2/rep-11.py
Normal file
10
ex2/rep-11.py
Normal file
@ -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())
|
||||||
Loading…
x
Reference in New Issue
Block a user