EC89
June 1, 2020, 4:22am
#1
Hi all,
This is the first time I’m uploading a project on the DQ community.
Please find my project in the below link.
Any kind of feedback on the coding and how to make it better is greatly appreciated.
https://app.dataquest.io/m/356/guided-project%3A-exploring-hacker-news-posts/8/next-steps
Basics.ipynb (19.2 KB)Click here to view the jupyter notebook file in a new tab
Rucha
June 3, 2020, 11:03am
#2
Welcome to DQ Community @EC89
Cool project! would just suggest one thing.
Try to use a different code cell when you wish to print results of a variable which has reasonable length.
like instead of print(comments_by_hour)
in separate code cell just use comments_by_hour
. That way the dictionary would print as:
{key1 : value1,
key2 : value2,
...
keyN : valueN}
1 Like
Hello @EC89
Fantastic! I particularly learned from your project that it is best to use markdown cells to carry readers along. Thumbs up…
I would like to suggest you use the pytz package to change the time zone automatically.
Thank you.
2 Likes
EC89
June 3, 2020, 3:10pm
#4
Thanks Rucha, appreciate you going through the code. And thanks for the advice on improving its readability!
1 Like
EC89
June 3, 2020, 3:12pm
#5
Hello Lawal, glad that there was something you could take away from it. Thanks for the tip on pytz package for time zone adjustments
1 Like