pandas读取excel中指定数据的行数
1 shuju = pd.read_excel(filename)
2 loandata = pd.DataFrame(shuju)
3 ncol = (len(loandata.keys()))
4
5 data = loandata[loandata['时间'].isin(['2016/8/28 8:00'])].index #“时间”是列标,查看2016/8/28 8:00所在的行号
1 shuju = pd.read_excel(filename)
2 loandata = pd.DataFrame(shuju)
3 ncol = (len(loandata.keys()))
4
5 data = loandata[loandata['时间'].isin(['2016/8/28 8:00'])].index #“时间”是列标,查看2016/8/28 8:00所在的行号