Skip to content

Instantly share code, notes, and snippets.

@RobBlackwell
Created February 14, 2019 09:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RobBlackwell/b4d894cc191a83d8d183a393390c0c25 to your computer and use it in GitHub Desktop.
Save RobBlackwell/b4d894cc191a83d8d183a393390c0c25 to your computer and use it in GitHub Desktop.
using Glob
using CSVFiles
using DataFrames
filenames = glob("*.csv")
function load_dataframes(filenames)
df = DataFrame(CSVFiles.load(filenames[1]))
for filename in filenames[2:end]
df2 = DataFrame(CSVFiles.load(filename))
df = [df; df2]
end
return df
end
df = load_dataframes(filenames)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment