Pandas
跳到导航
跳到搜索
Python Data Analysis Library
io
- read_csv
import pandas as pd data=pd.read_csv('cGs_for_LAMOST.csv') data.columns ra=data['ra'] dec=data['dec]
- read_table
:读普通的ascii文件
file=pd.read_table(path+'test1.spectrum',skiprows=range(0,6),\ names=('Time','wave','flux','flux_stellar','flux_nebular'),delim_whitespace=True)