Search code examples
pythonpandasscatter-plot

How to make a scatterplot


I would like to make a point cloud with these two columns but I can't do it, can you help me?

Code

import pandas as pd
import matplotlib.pyplot as plt 
members = pd.read_csv("https://raw.githubusercontent.com/rfordatascience/tidytuesday/master/data/2020/2020-09-22/members.csv")

x = members["member_id"]
y = members["death_height_metres"]

plt.scatter(x, y)

Solution

  • You are missing plt.show() at the end. It will show you graph then.