Tracés de base avec Matplotlib

Python intermédiaire

Hugo Bowne-Anderson

Data Scientist at DataCamp

Tracés de base avec Matplotlib

  • Visualisation

icône de graphique à barres

  • Structure des données

icône de code

  • Structures de contrôle

  • Étude de cas

Python intermédiaire

Visualisation des données

  • Très important dans l'analyse des données

    • Explorer les données
    • Informations clés du rapport

Python intermédiaire

1 Source : GapMinder, Richesse et Santé des Nations
Python intermédiaire

1 Source : GapMinder, Richesse et Santé des Nations
Python intermédiaire

1 Source : GapMinder, Richesse et Santé des Nations
Python intermédiaire

Matplotlib

import matplotlib.pyplot as plt

year = [1950, 1970, 1990, 2010]
pop = [2.519, 3.692, 5.263, 6.972]
plt.plot(year, pop)
plt.show()

Python intermédiaire

Matplotlib

Python intermédiaire

Matplotlib

Python intermédiaire

Diagramme de dispersion

import matplotlib.pyplot as plt
year = [1950, 1970, 1990, 2010]
pop = [2.519, 3.692, 5.263, 6.972]
plt.plot(year, pop)
plt.show()
Python intermédiaire

Diagramme de dispersion

import matplotlib.pyplot as plt
year = [1950, 1970, 1990, 2010]
pop = [2.519, 3.692, 5.263, 6.972]
plt.scatter(year, pop)
plt.show()

Python intermédiaire

Passons à la pratique !

Python intermédiaire

Preparing Video For Download...