The new macbooks with M1 Apple Silicon chips are fast and have superior battery life. However, setting up a development environment on these new models that relies on Pandas can be a pain. After going through Github issues and Stack Overflow pages, I hope this article can save time for those who would like to use Pipenv and Pandas on their M1 laptops.

Initial Setup

  • MacOS Big Sur version 11.0.1
  • Python 3.9.2 installed using brew
  • pip 21.0.1
  • Pipenv to manage environment

Installing Pandas in Pipenv

Activate pipenv shell on the project folder (mine is called “pipenv-project”)

pipenv shell

Output:

The following commands are executed inside the…


The novel coronavirus (COVID-19) pandemic situation continues to evolve worldwide. Thanks to Johns Hopkins CSSE, we now have access to these data and we can use it to build analysis and dashboards. We will use the daily reports data.

In this tutorial, we will build a simple visualization to display the impact of COVID-19 in each country as shown below. We will use Python and Plotly Dash. Dash is a Python framework that makes it simple to build interactive data visualization web apps.

The final code can be found here: https://github.com/megahf/covid19-dash/blob/master/choropleth.py

COVID-19 map that we will build

Prerequisites

You need to have Python 3 and pip…

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store