Skip to content
Permalink
f8944e4b75
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
14 lines (12 sloc) 355 Bytes
import pandas as pd
import matplotlib.pyplot as plt
# Load the dataset
df = pd.read_csv('Trips_by_Distance.csv')
# Plot histogram
plt.figure(figsize=(10, 6))
plt.hist(df['Week'], bins=20, color='blue', alpha=0.7)
plt.xlabel('Week')
plt.ylabel('Frequency')
plt.title('Histogram of People Staying at Home vs Week')
plt.grid(True)
plt.show()