Photo by ev on Unsplash

What Is Clustering?

Clustering is a set of techniques used to partition data into groups or clusters. Clusters are loosely defined as groups of data objects that are more similar to other objects in their cluster than they are to data objects in other clusters.

K-Means is an unsupervised machine learning algorithm that groups data into k number of clusters.

Dataset

I have used the OECD, EU28, G20 Population and Demographic Indicators Data published on ALTADATA.

ALTADATA is a Curated Data Marketplace. You can sign up on altadata.io and access this data for free.

Gathering data

We will be using pandas, plotly express, altadata and scikit-learn


Photo by Isaac Smith on Unsplash

Data visualization gives us a clear idea of what the information means by giving it visual context through maps or graphs. This makes the data more natural for the human mind to comprehend and therefore makes it easier to identify trends, patterns, and outliers within large data sets.

In this article, I will try to explain how to use Plotly Express for data visualization with examples.

Why Plotly Express?

Plotly Express is the easy-to-use, high-level interface to Plotly, which operates on a variety of types of data and produces easy-to-style figures.

Plotly Express is to Plotly.py what Seaborn is to matplotlib: a high-level…


Photo by Edwin Hooper on Unsplash

Python provides a wide variety of packages for data analysis. Besides, Python has an easy-to-use language and great community support. Considering all these I decided to use Python for this analysis.

Importing required packages

We start by importing the necessary packages. I used pandas for Data Wrangling and EDA. Also, I used matplotlib, seaborn, and folium for data visualization.

Dataset

I have used the COVID-19 US Daily Data published on ALTADATA.

ALTADATA is a Curated Data Marketplace. You can sign up on altadata.io and access this data for free.

Gathering data

You need to subscribe to an ALTADATA data product to get an API key…

Emre Durukan

Data Engineer

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