1. 程式人生 > >python---pandas

python---pandas

axis lin pandas bsp pdf frame -- 讀取 .com

讀取csv:https://zhuanlan.zhihu.com/p/26618330

刪除某一列:

http://blog.sciencenet.cn/home.php?mod=space&uid=645086&do=blog&id=884388

import numpy as np
import pandas as pd
df = pd.DataFrame({"a":np.random.randn(4),"b":np.linspace(1,4,4),"c":["hp","es",9,1]})
print(df)
print("del:")
df2 = df.drop(a,axis=1)
print(df2)

讀取pdf:https://zhuanlan.zhihu.com/p/20910680

python---pandas