Get data from local via pandas

来源:互联网 发布:将js文件引入html代码 编辑:程序博客网 时间:2024/06/10 20:23

Module pandas provides several methods to transform table-like data into DataFrame

read_csvread_table    read_fwfread_clipboard

Function above has the listed option:
Undex: whether index is read with file from local
Type inference:
iteration:

import pandas as pd
pd.read_csv(filename)
pd.read_table(filename, sep=’,’)
pd.read_csv(filename, header=None)
pd.read_csv(filename, names=[namelist])
indicate index
pd.read_csv(filename, names=[namelist], index_col=’index_col’)

0 0
原创粉丝点击