text_plain_output_1.png
import matplotlib.pyplot as plt

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

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_cities.plot.bar()
plt.title('10 most popular travel cities')
plt.xlabel('Cities')
plt.ylabel('Trips')