Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

import all csv python

# Needed packages
import glob
import pandas as pd

# Import all csv files
files = glob.glob("Path/*.csv")

# Concatenate them into one Dataframe

df = pd.DataFrame()
for f in files:
    csv = pd.read_csv(f)
    df = df.append(csv)
    print(df)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #import #csv #python
ADD COMMENT
Topic
Name
5+3 =