[Python] Python Excal Printing Actual Value of Long Number

Discussão em 'Python' iniciado por Stack, Junho 23, 2025.

  1. Stack

    Stack Membro Participativo

    Hello I am running a excel file through my python script to extract data. There is a column Steel Location in the excel file that has the id of each steel pole. Because the id is long, excel adds the + in the cell. The issue is that, when extracting data from the excel file, the plus comes over when I run python. I need the whole number printed because its the actual id of each steel pole as shown in the image.[​IMG]

    import pandas as pd


    file_path = "Steel Signs - ElevationData.csv"

    df = pd.read_csv(file_path)

    for [key, value] in df.to_dict().items():
    print(value)

    Continue reading...

Compartilhe esta Página