Menu

Temperature vs Humidity Scatter Plot

Temperature vs Humidity Scatter Plot

Scatter plots help visualize relationships between two variables.

Code

plt.figure(figsize=(8,5))

plt.scatter(

df['temperature'],

df['humidity']

)

plt.xlabel("Temperature")

plt.ylabel("Humidity")

plt.title("Temperature vs Humidity")

plt.show()

Explanation

Each point represents a weather observation.

Insight

The scatter plot can reveal:

  • Positive relationships
  • Negative relationships
  • Clusters
  • Outliers

Understanding these relationships is important in weather analysis.