Methode 1 ↳ 18 cells hidden Methode 2 id dur proto service state spkts dpkts sbytes…
- User
Methode 1 ↳ 18 cells hidden Methode 2
id dur proto service state spkts dpkts sbytes dbytes
0 1 0.000011 udp - INT 2 0 496 0
1 2 0.000008 udp - INT 2 0 1762 0
2 3 0.000005 udp - INT 2 0 1068 0
3 4 0.000006 udp - INT 2 0 900 0
4 5 0.000010 udp - INT 2 0 2126 0rate ... ct_dst_sport_ltm ct_dst_src_ltm is_ftp_login \0 90909.0902 ... 1 2 0
1 125000.0003 ... 1 2 0
2 200000.0051 ... 1 3 0
3 166666.6608 ... 1 3 0
4 100000.0025 ... 1 3 0ct_ftp_cmd ct_flw_http_mthd ct_src_ltm ct_srv_dst is_sm_ips_ports
0 0 0 1 2 0
1 0 0 1 2 0
2 0 0 1 3 0
3 0 0 2 3 0
4 0 0 2 3 0attack_cat label
0 Normal 0
1 Normal 0
2 Normal 0
3 Normal 0
4 Normal 0[5 rows x 45 columns]
Dimensions du dataset
print("Dimensions du dataset:", data.shape)
Types de données
print(data.dtypes)
Vérifier les valeurs manquantes
print(data.isnull().sum())
Statistiques descriptives
print(data.describe())
Dimensions du dataset: (82332, 45) id int64 dur float64 proto object service object state object spkts int64 dpkts int64 sbytes int64 dbytes int64 rate float64 sttl int64 dttl int64 sload float64 dload float64 sloss int64 dloss int64 sinpkt float64 dinpkt float64 sjit float64 djit float64 swin int64 stcpb int64 dtcpb int64 dwin int64 tcprtt float64 synack float64 ackdat float64 smean int64 dmean int64 trans_depth int64 response_body_len int64 ct_srv_src int64 ct_state_ttl int64 ct_dst_ltm int64 ct_src_dport_ltm int64 ct_dst_sport_ltm int64 ct_dst_src_ltm int64 is_ftp_login int64 ct_ftp_cmd int64 ct_flw_http_mthd int64 ct_src_ltm int64 ct_srv_dst int64 is_sm_ips_ports int64 attack_cat object label int64 dtype: object id 0 dur 0 proto 0 service 0 state 0 spkts 0 dpkts 0 sbytes 0 dbytes 0 rate 0 sttl 0 dttl 0 sload 0 dload 0 sloss 0 dloss 0 sinpkt 0 dinpkt 0 sjit 0 djit 0 swin 0 stcpb 0 dtcpb 0 dwin 0 tcprtt 0 synack 0 ackdat 0 smean 0 dmean 0 trans_depth 0 response_body_len 0 ct_srv_src 0 ct_state_ttl 0 ct_dst_ltm 0 ct_src_dport_ltm 0 ct_dst_sport_ltm 0 ct_dst_src_ltm 0 is_ftp_login 0 ct_ftp_cmd 0 ct_flw_http_mthd 0 ct_src_ltm 0 ct_srv_dst 0 is_sm_ips_ports 0 attack_cat 0 label 0 dtype: int64 id dur spkts dpkts sbytes count 82332.000000 82332.000000 82332.000000 82332.000000 8.233200e+04 mean 41166.500000 1.006756 18.666472 17.545936 7.993908e+03 std 23767.345519 4.710444 133.916353 115.574086 1.716423e+05 min 1.000000 0.000000 1.000000 0.000000 2.400000e+01 25% 20583.750000 0.000008 2.000000 0.000000 1.140000e+02 50% 41166.500000 0.014138 6.000000 2.000000 5.340000e+02 75% 61749.250000 0.719360 12.000000 10.000000 1.280000e+03 max 82332.000000 59.999989 10646.000000 11018.000000 1.435577e+07
- Assistant