text_html_output_1.png
import matplotlib.pyplot as plt

import pandas as pd # data processing, CSV file I/O (e.g. pd.read_csv)

import seaborn as sns

df = pd.read_csv('/kaggle/input/traveler-trip-data/Travel details dataset.csv')

df.isnull().sum()

df.dropna(inplace=True)

df.isnull().sum()

df.shape[0]

df = df.drop('Destination', axis=1)

popular_cities = df['City'].value_counts()[:10]

popular_country = df['Country'].value_counts()[:10]

transport_counts = df['Transportation type'].value_counts()[:5]
plt.axis('equal')

sns.countplot(data=df, x=df['Traveler age'], palette='bright')
plt.title('Number of trips by age group')
plt.xticks(rotation=90)
plt.show()