Skip to content

Instantly share code, notes, and snippets.

@WillKoehrsen
Created August 15, 2018 15:48
Show Gist options
  • Save WillKoehrsen/af4a39e1b32ba404fcaa6f3fae55118d to your computer and use it in GitHub Desktop.
Save WillKoehrsen/af4a39e1b32ba404fcaa6f3fae55118d to your computer and use it in GitHub Desktop.
base = '../input/fm/'
fm_paths = [base + p for p in os.listdir(base) if 'fm.csv' in p]
# List of dataframes
fms = [pd.read_csv(path) for path in fm_paths]
# Join rows together
feature_matrix = pd.concat(fms, axis = 0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment