Last active
April 8, 2017 21:45
-
-
Save brentarias/90eca56a45eac1acf44c871cf2f43d1f to your computer and use it in GitHub Desktop.
PHX-AI-ML
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
#!/bin/bash | |
tail -n 10000 train.csv > validate.csv | |
head -n -10000 train.csv > train0.csv;mv train0.csv train.csv | |
wc -l train.csv;wc -l validate.csv;wc -l test.csv |
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
## Pandas ## | |
import pandas as pd | |
TEST = pd.read_csv('test.csv',header=None) | |
TEST.shape | |
TEST.head() | |
TEST.columns.values | |
TEST.head().iloc[0:1] | |
TEST.head().iloc[0:1].values | |
type(TEST.head().iloc[0:1].values) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment