Created
May 20, 2015 09:55
-
-
Save DanielAndreasen/4f90f4af84a88a6785a6 to your computer and use it in GitHub Desktop.
Reading messy harps csv file in python
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
fields = ['star', 'teff', 'erteff', 'logg', 'erlogg', 'logghip', 'erlogg', 'vt', 'ervt', 'metal', 'ermetal'] | |
df = pd.read_csv('harps_all.dat', usecols=fields, delimiter=r'\s+') | |
print df.head() | |
print df.star | |
print df.ervt | |
print df['ervt'] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment