Skip to main content
Active reading [<https://en.wikipedia.org/wiki/Comma-separated_values>].
Source Link
Peter Mortensen
  • 31.1k
  • 22
  • 111
  • 134

Easy and Fast

Import two or more csv'sCSV files without having to make a list of names.

import glob
import pandas as pd

df = pd.concat(map(pd.read_csv, glob.glob('data/*.csv')))

Easy and Fast

Import two or more csv's without having to make a list of names.

import glob
import pandas as pd

df = pd.concat(map(pd.read_csv, glob.glob('data/*.csv')))

Easy and Fast

Import two or more CSV files without having to make a list of names.

import glob
import pandas as pd

df = pd.concat(map(pd.read_csv, glob.glob('data/*.csv')))
need to import module
Source Link
marcelovca90
  • 2.8k
  • 3
  • 30
  • 35

Easy and Fast

Import two or more csv's without having to make a list of names.

import glob
import pandas as pd

df = pd.concat(map(pd.read_csv, glob.glob('data/*.csv')))

Easy and Fast

Import two or more csv's without having to make a list of names.

import glob

df = pd.concat(map(pd.read_csv, glob.glob('data/*.csv')))

Easy and Fast

Import two or more csv's without having to make a list of names.

import glob
import pandas as pd

df = pd.concat(map(pd.read_csv, glob.glob('data/*.csv')))
Missing closing parenthesis in the code sample. Had to make couple more changes to satisfy 6 chars editing requirement.
Source Link

Easy and Fast

#Easy and Fast Import 2Import two or more csv's without having to make a list of names.

import glob

df = pd.concat(map(pd.read_csv, glob.glob('data/*.csv')))

#Easy and Fast Import 2 or more csv's without having to make a list of names.

import glob

df = pd.concat(map(pd.read_csv, glob.glob('data/*.csv'))

Easy and Fast

Import two or more csv's without having to make a list of names.

import glob

df = pd.concat(map(pd.read_csv, glob.glob('data/*.csv')))
added 1 character in body
Source Link
MrFun
  • 2.6k
  • 1
  • 19
  • 17
Loading
Rollback to Revision 1 - Edit approval overridden by post owner or moderator
Source Link
MrFun
  • 2.6k
  • 1
  • 19
  • 17
Loading
Loading
Source Link
MrFun
  • 2.6k
  • 1
  • 19
  • 17
Loading