- 博客(5)
- 收藏
- 关注
原创 将Excel表中的0 、NaT、nan替换为缺失值
data.replace(0, np.nan, inplace=True)data.replace("NaT", np.nan, inplace=True)data.replace("nan", np.nan, inplace=True)
2019-12-12 11:22:52 3723
原创 python——pandas.Series.str 字符串操作
1/字符大小写转换a.str.lower() # 小写a.str.upper() # 大写a.str.title() # 每个首字母大写a.str.capitalize() # 首字母大写a.str.swapcase() lower upper title capitalize swapcase 0 asd ASD ...
2019-12-11 09:55:06 8101
原创 'Series' object has no attribute 'split'
将Series转换成字符串,切分,提取pd.Series.str.split().str[0]
2019-12-10 17:17:24 3205
原创 python数据分析——读取加密Excel文档
import win32com.client as win32# 读取表格数据xlApp = win32.Dispatch("Excel.Application")filename, password = "filepath", 'password'xlApp.Visible = True # 可视化xlwb = xlApp.Workbooks.Open(filename, Fal...
2019-12-10 15:28:57 6340 2
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人