Gráficos básicos con Matplotlib

Python intermedio

Hugo Bowne-Anderson

Data Scientist at DataCamp

Gráficos básicos con Matplotlib

  • Visualización

icono de gráfico de barras

  • Estructura de datos

icono de código

  • Estructuras de control

  • Estudio de caso

Python intermedio

visualización de datos

  • Muy importante en el análisis de datos

    • Explorar los datos
    • Información del informe

Python intermedio

1 Fuente: GapMinder, Wealth and Health of Nations
Python intermedio

1 Fuente: GapMinder, Wealth and Health of Nations
Python intermedio

1 Fuente: GapMinder, Wealth and Health of Nations
Python intermedio

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 intermedio

Matplotlib

Python intermedio

Matplotlib

Python intermedio

Diagrama de dispersión

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 intermedio

Diagrama de dispersión

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 intermedio

¡Vamos a practicar!

Python intermedio

Preparing Video For Download...