用pandas的iloc從excel讀到的手機號帶有小數解決方法

pandas讀取excel是從第二行開始且起始爲0,且iloc取到的數據類型爲浮點型,獲取整數需要手動轉爲int a= pandas.read_excel(test_data_path, sheet_name='sheet').iloc[0, 0] 需要拿到整數型解決方法 a= int(pandas.read_excel(test_data_path, sheet_name='sheet').il
相關文章
相關標籤/搜索