import matplotlib.pyplot as plt
import seaborn as sns
import pandas as pd

# Sample data for inflation and unemployment rates (hypothetical data)
data = {
    'Year': [2018, 2019, 2020, 2021, 2022, 2023],
    'Inflation Rate (%)': [3.4, 3.7, 6.2, 5.5, 7.0, 6.5],
    'Unemployment Rate (%)': [6.1, 5.8, 7.1, 7.2, 7.5, 8.0],
}

# Create a DataFrame
df = pd.DataFrame(data)

# Set up the matplotlib figure
plt.figure(figsize=(10, 6))

# Create a scatter plot for the Phillips Curve
sns.regplot(x='Unemployment Rate (%)', y='Inflation Rate (%)', data=df, marker='o', color='blue')

# Set the title and labels
plt.title('Phillips Curve: Inflation vs. Unemployment in India (2018-2023)')
plt.xlabel('Unemployment Rate (%)')
plt.ylabel('Inflation Rate (%)')

# Show grid
plt.grid()

# Show the plot
plt.show()
