Inspecting the Distribution of Numberic Data
1 | import numpy as np |
Histograms
1 | import matplotlib.pyplot as plt |
1 | income = np.loadtxt("https://raw.githubusercontent.com/gagolews/" + |
1 | marathon = np.loadtxt("https://raw.githubusercontent.com/gagolews/" + |
Binning
1 | plt.subplot(121) # 1 row, 2 columns, 1st plot |
1 | peds = np.loadtxt("https://raw.githubusercontent.com/gagolews/" + |
1 | matura = np.loadtxt("https://raw.githubusercontent.com/gagolews/" + |
Cumulative Counts
1 | sns.histplot(heights, stat="percent", cumulative=True) |
1 | n = len(heights) |
Log-scale
1 | cities = np.loadtxt("https://raw.githubusercontent.com/gagolews/" + |
1 | sns.histplot(large_cities, bins=20) |

