text_plain_output_1.png
import numpy as np

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)

DDoS_PortScan_Data = np.array(DDoS_PortScan)
Label_Data = np.array(Label)

DDoS_PortScan_Data = DDoS_PortScan_Data / 347000000

DDoS_PortScan_Data = DDoS_PortScan_Data.reshape(DDoS_PortScan_Data.shape[0], 79, 1)
print(DDoS_PortScan_Data.shape)
print(DDoS_PortScan_Data.dtype)