[Python] When reading a csv file through pandas, all columns become a single column

Discussão em 'Python' iniciado por Stack, Março 29, 2025.

  1. Stack

    Stack Membro Participativo

    I am unable to print a DataFrame from a CSV file. It was originally in text format, but I converted to csv through the online site. So the file looks like this: [​IMG]

    CSV code:

    "clientId,timestamp,log"
    "1,Jun 29 2023 09:36:44.933,00:07"
    "36441418,Jun 29 2023 09:36:45.002,00:12 seconds"
    "34836299,Jun 29 2023 09:36:44.190,00:83 seconds"
    "36412881,Jun 29 2023 09:35:02.138,00:00 seconds"
    "37464661,Jun 29 2023 09:36:44.705,00:18 seconds"
    "1,Jun 29 2023 09:36:45.500,00:09 seconds"
    "37455397,Jun 29 2023 09:36:46.221,00:15 seconds"
    "38071830,Jun 29 2023 09:34:29.692,00:05 seconds"


    python output: [​IMG]

    Continue reading...

Compartilhe esta Página