Category: Python
-
How to Return the Most Recent Files from a Directory with Python
Using the glob library, we can quickly and dynamically pull a list of files from any directory and loop through them.
-
Leverage Plotly Express + Bootstrap to Create Great Looking HTML Reports
You’ve just finished a stellar analysis in a Jupyter notebook and you are ready to share your work with colleagues. However, they’ve never heard of a Jupyter notebook. In this post, I’ll walk you through creating an HTML export that leverages Bootstrap to create a styled exportable report from a Jupyter notebook.
-
Are Pie Charts Always a Bad Choice?
Most of the time, yes. In this post, I’ll explain why there is usually a better chart to choose from than a pie chart and visualization techniques for categorical data.
-
Analyzing Netflix Movies and TV Shows
An analysis of the shows and movies in Netflix as of 2019 using a dataset from Kaggle.
-
How to Break up a Comma Separated String in a Pandas Column
Let’s say you have a column of data that is a string list separated by commas. In this post, I’ll walk you through two ways to break up the data and count the frequency of the list items.
-
Is your Data Highly Skewed? Try Visualizing with using a Log Scale
Visualizing data that is highly skewed is tricky because most points get overshadowed. To fix that, try using a log scale.
-
How to Custom Sort a Python String List
If you have a list of string items and you want to perform a custom sort order (ie not alphabetical), you can use the key parameter in the list.sort() method to define the order.
-
Analyzing 2020 Election Results
An analysis of the 2020 presidential votes by county and voter turnout by state using datasets from Kaggle.
-
The Pandemic Recovery
In this post, I’ll be looking at a few indicators economic to measure the economic recovery from COVID-19. This was inspired by the Daily Podcast on November 19th, 2020 – The Pandemic Economy in 7 Numbers. I’ll be using data from FRED for this project and analyzing the data in a Jupyter Notebook.
-
How Much Time Do you Spend in Meetings?
In this post, I’ll analyze my Google Calendar events to see exactly how much time I spend in meetings each week.