Hi Reader,
Have you ever had a day where you were planning to do one thing, but then something grabbed your attention so strongly that you spent the entire day doing something else?
That’s what this week’s tip is about! 👇
This article is an excellent review of “the year’s highs and lows” by ML & AI researcher Sebastian Raschka. (If you're short on time, you can read his 300-word summary on Twitter.)
The other day, I was reading an article about the “advertised value” of lottery jackpots and was impressed by its attractive data visualizations. They were listed as being “Created with Datawrapper” (which I had never heard of), so I clicked through to see what it was.
Oh... WOW.
Datawrapper is a tool for creating beautiful and interactive charts, maps, and data tables. It’s targeted towards journalists wanting to enrich their stories, but I think its use naturally extends to anyone who needs to present their data to an audience.
Because it has a generous free plan, I decided it was worth playing around with!
Over the next many hours, I created three different visualizations using data from the World Happiness Report. (I learned about this dataset from Bamboo Weekly, a pandas newsletter written by my pal Reuven Lerner. Thanks Reuven! 🙏)
Below are the visualizations I created, which I would encourage you to click on and interact with:
Although I spent many hours creating these visualizations, the majority of that time was actually spent preparing the data (in pandas). Datawrapper itself was incredibly intuitive to use, and I came away quite impressed with the attractive results that you can produce in minimal time (and without writing any code!)
Side note: This isn’t a sponsored ad for Datawrapper, but it probably should be! 😂
I’m going to spend the next few Tuesday Tips explaining how I prepared the happiness data for Datawrapper using pandas. This will include basic pandas topics, like filtering and sorting and formatting data, as well as intermediate pandas topics, like merging and reshaping data and handling missing values.
In the meantime, if you have a dataset that needs visualizing, I’d encourage you to play around with Datawrapper and perhaps use these visualizations for inspiration!
If you enjoyed this week’s tip, please forward it to a friend! Takes only a few seconds, and it really helps me reach more people! 🙏
See you next Tuesday!
- Kevin
P.S. Wikipedia’s Lamest Edit Wars (data)
Did someone awesome forward you this email? Sign up here to receive Data Science tips every week!
Join 25,000+ aspiring Data Scientists and receive Python & Data Science tips every Tuesday!
Hi Reader, Next week, I’ll be offering a Black Friday sale on ALL of my courses. I’ll send you the details this Thursday! 🚨 👉 Tip #50: What is a "method" in Python? In Python, a method is a function that can be used on an object because of the object's type. For example, if you create a Python list, the "append" method can be used on that list. All lists have an "append" method simply because they are lists: If you create a Python string, the "upper" method can be used on that string simply...
Hi Reader, I appreciate everyone who has emailed to check on me and my family post-Helene! It has been more than 6 weeks since the hurricane, and most homes in Asheville (mine included) still don't have clean, running water. We're hopeful that water service will return within the next month. In the meantime, we're grateful for all of the aid agencies providing free bottled water, free meals, places to shower, and so much more. ❤️ Thanks for allowing me to share a bit of my personal life with...
Hi Reader, Regardless of whether you enrolled, thanks for sticking with me through the launch of my new course! 🚀 I've already started exploring topics for the next course... 😄 🔗 Link of the week git cheat sheet (PDF) A well-organized and highly readable cheat sheet from Julia Evans, the brilliant mind behind Wizard Zines! 👉 Tip #48: Three ways to set your environment variables in Python I was playing around with Mistral LLM this weekend (via LangChain in Python), and I needed to set an...