mwermelinger / Learn-to-code-for-data-analysis

Jupyter notebooks and datasets for this course
102 stars 226 forks source link

Week 4 'datetime' issue #4

Closed Fitz0202 closed 4 years ago

Fitz0202 commented 4 years ago

Hi

I'm working through the Learn to Code for Data Analysis course and am experiencing an issue in week 4 and wonder if anyone could help.

I have been through the various stages of the notebook and changed the value types of the columns so everything is correct and the 'GMT' column values are datetime64[NS]. However the line of code which follows (In [40] which was already in the notebook) returns a NameError saying "name 'datetime' is not defined".

Issue1

Also, subsequent lines with 'datetime' in the code also return NameError. This is stopping me progressing through the course and completing the mandatory week 4 quiz.

Being a complete beginner I obviously don't have the knowledge to navigate my way out of this and I would greatly appreciate your help.

Thanks

LauraGuest commented 4 years ago

I'm experiencing the same issue. Have you been able to find away around the error?

Fitz0202 commented 4 years ago

Hi, yes I have. I researched online and found the answer after hours thinking I couldn't complete the course.

You need to type the following code after re indexing:

From datetime import datetime

Hope this helps.

Chris

On Fri, 8 May 2020, 9:48 am LauraGuest, notifications@github.com wrote:

I'm experiencing the same issue. Have you been able to find away around the error?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/mwermelinger/Learn-to-code-for-data-analysis/issues/4#issuecomment-625711911, or unsubscribe https://github.com/notifications/unsubscribe-auth/APM3BJWT4WV5DQUILC5V5SLRQPBNPANCNFSM4MVUOVCQ .

mwermelinger commented 4 years ago

Section 1.4 of Week 4 shows and explains the from datetime import datetime statement but we forgot to put the corresponding code in the exercises notebook. Sorry about that and thanks for reporting it. Will fix.