Ask coding questions

← Back to all posts
i tried to import pandas and work with it , but it does not work?
zaidan71 (0)

import pandas as pd
df = pd.read_csv('https://query.data.world/s/6up6r4poe2lgy77kg2k62r2qy7ygt6')
print(df.head(2))
df.tail(2)

can some one please tell why the code does not working ,

Comments
hotnewtop
HarrisAhmad1 (0)

If you have to work with Pandas, try coding on Jupyter instead of this online compiler because many modules don't work here, and I seriously don't know why. Anyway, if you got to make this work, try switching over to the notebook. I code in Python on the notebook (Anaconda3), and when I have to work with C++, I switch over to repl or VS Code.