Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

pandas merge all csv in a folder

import glob, os    
import pandas as pd
df = pd.concat(map(pd.read_csv, glob.glob(os.path.join('', "*.csv"))))
Comment

PREVIOUS NEXT
Code Example
Python :: pandemonium 
Python :: minecraft 
Python :: ignore warnings python 
Python :: django EMAIL_BACKEND console 
Python :: jupyter display all columns 
Python :: python update pip3 
Python :: django template tag to display current year 
Python :: matplotlib axis rotate xticks 
Python :: python show all columns 
Python :: simple flask hello world 
Python :: to_csv without index 
Python :: change name of pygame window 
Python :: convert date string to date time string python 
Python :: XLRDError: Excel xlsx file; not supported 
Python :: check the os in python 
Python :: python console pause 
Python :: clear outpur jupyter 
Python :: get stats from array python 
Python :: Cannot mask with non-boolean array containing NA / NaN values 
Python :: import apiview 
Python :: python how to count the lines in a file 
Python :: python save figure 
Python :: how to make a custom icon for pygame 
Python :: get mouse click coordinates python turtle 
Python :: python flip a coin 
Python :: python reload class 
Python :: view whole dataset in python 
Python :: flask cors 
Python :: how to delete last N columns of dataframe 
Python :: fetch row where column is equal to a value pandas 
ADD CONTENT
Topic
Content
Source link
Name
4+5 =