Created
February 14, 2019 09:32
-
-
Save RobBlackwell/b4d894cc191a83d8d183a393390c0c25 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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