Matplotlib के साथ डेटा विज़ुअलाइज़ेशन परिचय

Matplotlib के साथ डेटा विज़ुअलाइज़ेशन परिचय

Ariel Rokem

Data Scientist

डेटा विज़ुअलाइज़ेशन

छवि श्रेय: Gytis Dudas और Andrew Rambaut

Matplotlib के साथ डेटा विज़ुअलाइज़ेशन परिचय

pyplot इंटरफ़ेस का परिचय

import matplotlib.pyplot as plt

fig, ax = plt.subplots()
plt.show()

Matplotlib के साथ डेटा विज़ुअलाइज़ेशन परिचय

Axes में डेटा जोड़ना

seattle_weather["MONTH"]
DATE
1     Jan
2     Feb
3     Mar
4     Apr
5     May
6     Jun
7     Jul
8     Aug
9     Sep
10    Oct
11    Nov
12    Dec
Name: MONTH, dtype: object
seattle_weather["MLY-TAVG-NORMAL"]
1     42.1
2     43.4
3     46.6
4     50.5
5     56.0
6     61.0
7     65.9
8     66.5
9     61.6
10    53.3
11    46.2
12    41.1
Name: MLY-TAVG-NORMAL, dtype: float64
Matplotlib के साथ डेटा विज़ुअलाइज़ेशन परिचय

Axes में डेटा जोड़ना

ax.plot(seattle_weather["MONTH"], seattle_weather["MLY-TAVG-NORMAL"])
plt.show()

Matplotlib के साथ डेटा विज़ुअलाइज़ेशन परिचय

और डेटा जोड़ना

ax.plot(austin_weather["MONTH"], austin_weather["MLY-TAVG-NORMAL"])
plt.show()

Matplotlib के साथ डेटा विज़ुअलाइज़ेशन परिचय

सब कुछ साथ लाना

fig, ax = plt.subplots()
ax.plot(seattle_weather["MONTH"], seattle_weather["MLY-TAVG-NORMAL"])
ax.plot(austin_weather["MONTH"], austin_weather["MLY-TAVG-NORMAL"])
plt.show()

Matplotlib के साथ डेटा विज़ुअलाइज़ेशन परिचय

एक फ़िगर बनाना अभ्यास करें!

Matplotlib के साथ डेटा विज़ुअलाइज़ेशन परिचय

Preparing Video For Download...