Skip to content

Instantly share code, notes, and snippets.

Created May 18, 2021
What would you like to do?
# Scatter Plot
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
housing = pd.read_csv("")
housing.plot(kind='scatter', x='longitude', y='latitude', alpha=0.4, s=housing['population']/100, label='population',
figsize=(12, 8), c='median_house_value', cmap=plt.get_cmap('jet'), colorbar=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment