Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

If you faced error in loading data in Exercise 1 using colab #21

Open
Kha23i opened this issue Mar 27, 2022 · 9 comments
Open

If you faced error in loading data in Exercise 1 using colab #21

Kha23i opened this issue Mar 27, 2022 · 9 comments

Comments

@Kha23i
Copy link

Kha23i commented Mar 27, 2022

The original code
sales = pd.read_csv( 'data/sales_data.csv', parse_dates=['Date'])
may cause error for you
then you can replace it with
sales = pd.read_csv( 'https://raw.githubusercontent.com/ine-rmotr-curriculum/FreeCodeCamp-Pandas-Real-Life-Example/master/data/sales_data.csv', parse_dates=['Date'])
And it worked well for me 💯

@nati12
Copy link

nati12 commented Apr 27, 2022

Thanks! It works for me too!

@DJ-Anica
Copy link

Thank you kindly! Works for me.

@shaula28
Copy link

Thank you, but it keeps saying
SyntaxError: unexpected EOF while parsing

anw I found another alternative

url = 'https://raw.githubusercontent.com/ine-rmotr-curriculum/FreeCodeCamp-Pandas-Real-Life-Example/master/data/sales_data.csv'
sales  = pd.read_csv(url)

@BaSalami01
Copy link

Thanks a lot. It worked for me @Kha23i

@el-cee
Copy link

el-cee commented Sep 14, 2022

How did you know to do this? @Kha23i

@amithdas99
Copy link

How did you find this @Kha23i broo

@Nat359
Copy link

Nat359 commented Sep 24, 2022

@Kha23i Thank you. Seems worked for me. Needed to put a code in all 3 lines. Sorry, i am new to it.

@Sarabdat
Copy link

@Kha23i thanks a ton, similarly I tried pulling the file from local

sales = pd.read_csv('C:/Users/xyz/Desktop/sales_data.csv', parse_dates= ['Date'])

@Vedant-001
Copy link

@Sarabdat Idk why but that didn't work for me...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants