Python 熊猫和巨蟒

Python 熊猫和巨蟒,python,pandas,jira,Python,Pandas,Jira,编辑: 所以我做了一些研究,最终得到了这个有效的解决方案 converters = {col: str for col in (0,3)} df = pd.read_excel(xlsx, sheetname = 'data',converters=converters) for index,row in df.iterrows(): jira = str(row['Numbers'])) 我正在尝试使用pandas读取excel文件。我的excel文件中的一个值是数字10

编辑:

所以我做了一些研究,最终得到了这个有效的解决方案

converters = {col: str for col in (0,3)}    
df = pd.read_excel(xlsx, sheetname = 'data',converters=converters)

for index,row in df.iterrows():
     jira = str(row['Numbers']))
我正在尝试使用pandas读取excel文件。我的excel文件中的一个值是数字1085879717972。当我读取文件时,Panda看到“数字”列中的数字为1.08587971797e+12,是否有办法读取excel文件中显示的数字

xlsx = pd.ExcelFile(in_path)
df = pd.read_excel(xlsx, sheetname = 'data')

for index,row in df.iterrows():

    jira = str(row['Numbers']))

当你把
converters={'Numbers':np.int64}
添加到你的
read_excel()
?@chrisaycock我刚刚做了一些研究,也偶然发现了这个解决方案。我实际上使用了这个转换器={col:str for col in(0,3)}df=pd.read_excel(xlsx,sheetname='data',converters=converters),因为还有其他非整数的列,但我可以将它们全部转换为字符串,并在必要时转换为数字。