Python Data Visualization: covid-19, new cases [small multiple chart]

An image of a small multiple chart made with Seaborn.

In the last several tutorials, we’ve been analyzing and working with covid-19 data. This is the second week of April, and the covid-19 epidemic has become a worldwide crisis. In any crisis … in any environment where you need to make decisions, you need good information. Data science can help. So in this series of … Read more

Python data manipulation, covid19: how to calculate new cases

An image of a covid-19 dataset with a "new cases" variable added to the end.

This is a new installment in a series of tutorials showing you how to analyze covid-19 data with Python. In the last few tutorials, we’ve done quite a bit of work. For part 1, we retrieved the dataset for “confirmed” cases, and “wrangled” it into shape. In part 2, we retrieved the files for confirmed, … Read more

Python Data Analysis: covid-19, part 4 [visual data exploration]

An image of a bar chart with the top 15 countries with the most covid-19 cases.

This tutorial is part of a series of tutorials analyzing covid-19 data. For parts 1, 2, and 3, see the following posts: https://www.sharpsightlabs.com/blog/python-data-analysis-covid19-part1/ https://www.sharpsightlabs.com/blog/python-data-analysis-covid19-part2/ https://www.sharpsightlabs.com/blog/analyzing-covid-19-with-python-part-3-eda/ Covid19 analysis, part 4: visual data exploration So far in this tutorial series, we’ve focused mostly on getting data, particularly in parts 1 and 2. Most recently, in part 3, … Read more

Analyzing covid-19 with Python, part 3 [data exploration]

An image of Python code analyzing covid19 data, with an image of the sars-cov-2 virus in the background.

This tutorial is part of a series of tutorials analyzing covid-19 data. For parts 1 and 2, see the following posts: https://www.sharpsightlabs.com/blog/python-data-analysis-covid19-part1/ https://www.sharpsightlabs.com/blog/python-data-analysis-covid19-part2/ Covid19 analysis, part 3: initial data exploration If you’ve been following along with this tutorial series, you’ll know that in the most recent tutorial, we defined a process for getting and cleaning … Read more

Python Data Analysis: covid-19, part 2 [merge datasets]

An image that shows Python syntax, merging datasets for a data analysis, with an image of the sars-cov-2 virus in the background.

This tutorial is part of a series of tutorials analyzing covid-19 data. For part 1, see the following post: https://www.sharpsightlabs.com/blog/python-data-analysis-covid19-part1/ Covid19 analysis, part 2: merge datasets In the previous tutorial in this series, we began analyzing covid19 data using Python. Specifically, in part 1, we created a process for getting the covid19 data for confirmed … Read more

Python Data Analysis: covid-19 data, part 1 [data wrangling]

An image that shows Python data analysis code, with a sars-cov-19 virus in the background.

If you’re like most people around the world, you’re probably concerned with the coronavirus, AKA, sars-cov-19, which for the sake of simplicity, I’ll refer to as covid-19. As you’re reading this, there’s a reasonable chance that you’re stuck working from home or otherwise quarantined in some way. Welcome to 2020 … it’s crazy. Assuming that … Read more

How to use the NumPy median function

This tutorial will show you how to use the NumPy median function, which we often call np.median. This tutorial will teach you a few things. First, it will show you how the NumPy median function works syntactically. We’ll cover the basic syntax and parameters of the np.median function. I’ll also show you some examples of … Read more