Skip to content

Instantly share code, notes, and snippets.

@manashmandal
Created November 9, 2016 16:46
Show Gist options
  • Save manashmandal/644608c295261ba54172d754141481e4 to your computer and use it in GitHub Desktop.
Save manashmandal/644608c295261ba54172d754141481e4 to your computer and use it in GitHub Desktop.
Load N col, M row based files
x1,x2,x3,x4,x5
1,2,3,4,5
2,3,4,5,6
4,5,6,6,7
# 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