To create a bar chart, you can use the plot() function with the kind parameter set to 'bar'.
Here's an example:
import pandas as pd
import matplotlib.pyplot as plt
# Sample data
data = {'City': ['New York', 'Los Angeles', 'Chicago', 'Houston', 'Phoenix'],
'Population (Millions)': [8.4, 3.9, 2.7, 2.3, 1.7]}
# Create a DataFrame
df = pd.DataFrame(data)
# Plot a bar chart
df.plot(x='City', y='Population (Millions)', kind='bar', title='Population by City')
plt.xlabel('City')
plt.ylabel('Population (Millions)')
plt.show()