I'm trying to create an histogram made of data I got as homework. when I'm trying to plot it, values on the x axis are different (0.0-1.0) from those in the actual dataset (20,000 - 1,000,000). How do I get the range of actual values from my data to be displayed on the x axis of the histogram instead?
My code:
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
df = pd.read_csv('okcupid_profiles.csv')
df = df[df['income'] != -1]
income_histogram = sns.distplot(df['income'], bins=40)
income_histogram
Thanks