Created
November 9, 2016 16:46
-
-
Save manashmandal/644608c295261ba54172d754141481e4 to your computer and use it in GitHub Desktop.
Load N col, M row based files
This file contains hidden or 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
x1,x2,x3,x4,x5 | |
1,2,3,4,5 | |
2,3,4,5,6 | |
4,5,6,6,7 |
This file contains hidden or 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
# Python 2.7 | |
import pandas as pd | |
df = pd.read_csv('data_file.txt') | |
# Getting 'x1' labelled column | |
print df['x1'] | |
# Getting the max value | |
print max(df['x1']) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment