text_plain_output_1.png
import pandas as pd

DDoS_PortScan = pd.read_csv('/kaggle/input/ddos-portscan/DDoS_PortScan.csv')
Label = DDoS_PortScan.loc[:, ' Label']
DDoS_PortScan.replace({'DDoS': 0, 'PortScan': 1}, inplace=True)
Label.replace({'DDoS': 0, 'PortScan': 1}, inplace=True)

print(DDoS_PortScan.shape)
print(Label.shape)