Primary competition visual

Network Traffic Scenario Prediction Challenge by ITU

$1 000 USD
Challenge completed ~2 years ago
Prediction
373 joined
115 active
Starti
Jul 28, 23
Closei
Sep 10, 23
Reveali
Sep 10, 23
User avatar
ML_Wizzard
Nasarawa State University
Data Arrangement
Help · 2 Sep 2023, 16:19 · 2

can someone help me how to arrange the data for training

Discussion 2 answers
User avatar
yanteixeira

@mubarak127

import pandas as pd
import numpy as np
import os

files = os.listdir(directory_path)
directory_path = 'put your path here'
dfs = []

# Loop through each file, read it as a dataframe and append to the list
for file in files:
    if file.endswith('.csv'):
        full_file_path = os.path.join(directory_path, file)
        df = pd.read_csv(full_file_path)
        dfs.append(df)
        

final_df = pd.concat(dfs, ignore_index=True)

2 Sep 2023, 16:25
Upvotes 0
User avatar
ML_Wizzard
Nasarawa State University
Thanks for the help @yanteixeira