[Python] Jupyternotebook server - cannot read CSV into variable

Discussão em 'Python' iniciado por Stack, Abril 20, 2025.

  1. Stack

    Stack Membro Participativo

    I downloaded https://www.kaggle.com/datasets/kazanova/sentiment140 i.e. 1.6m twitter dataset to analyze data for text mining classes.

    df = pd.read_csv('https://server_name/sentiment140/training.1600000.processed.noemoticon.csv',header=None)
    df.head()


    Unfortunately the above code does not work, nothing displays when df.head() is executed. However when I click on the uploaded file and select 'open in a new browser tab', new tab downloads file and displays it.

    Considering the above, what is the reason read_csv does not assign full table to a new 'df' variable? Thank you in advance for information.

    Continue reading...

Compartilhe esta Página