Plot for years vs logan_passengers_over_years

From the above graph it can be observed that loagn_passengers incrsed with increase in years.

The below methods can be used to plt the graph

df = pd.read_csv(‘eci.csv’)
columns_to_plot = [‘logan_passengers’]

plt.figure(figsize=(10, 6))
sns.lineplot(data=df, x=’Year’, y=columns_to_plot[0], color=’skyblue’)

plt.xlabel(‘Year’)
plt.ylabel(‘Logan Passengers’)
plt.title(‘Line Graph of Logan Passengers Over Years’)

plt.show()

Leave a Reply

Your email address will not be published. Required fields are marked *