Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Create a Grouped Bar Chart | Bar Charts
Visualization in Python with matplotlib
course content

Contenido del Curso

Visualization in Python with matplotlib

Visualization in Python with matplotlib

1. Basics: Line Charts
2. Bar Charts
3. Scatter Plots

Create a Grouped Bar Chart

Note

To build 2 columns, we need to set x - width/2 as the first parameter with the first .bar() call, and x + width/2 for the second. If we want to build three columns, we can use the following approach: x - width, x, and x + width.

Tarea

  1. Save data for 'MUMBAI CITY' in the mumbai variable and all unique values from the 'Month' column in the months variable.
  2. Set width variable value to 0.3.
  3. Set proper first arguments according to the approach from the theory (displayed above). With the last .bar() function call display the mumbai data. Set label to 'Mumbai'.
  4. Set months as x ticks labels.

Tarea

  1. Save data for 'MUMBAI CITY' in the mumbai variable and all unique values from the 'Month' column in the months variable.
  2. Set width variable value to 0.3.
  3. Set proper first arguments according to the approach from the theory (displayed above). With the last .bar() function call display the mumbai data. Set label to 'Mumbai'.
  4. Set months as x ticks labels.

Cambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones

¿Todo estuvo claro?

Sección 2. Capítulo 6
toggle bottom row

Create a Grouped Bar Chart

Note

To build 2 columns, we need to set x - width/2 as the first parameter with the first .bar() call, and x + width/2 for the second. If we want to build three columns, we can use the following approach: x - width, x, and x + width.

Tarea

  1. Save data for 'MUMBAI CITY' in the mumbai variable and all unique values from the 'Month' column in the months variable.
  2. Set width variable value to 0.3.
  3. Set proper first arguments according to the approach from the theory (displayed above). With the last .bar() function call display the mumbai data. Set label to 'Mumbai'.
  4. Set months as x ticks labels.

Tarea

  1. Save data for 'MUMBAI CITY' in the mumbai variable and all unique values from the 'Month' column in the months variable.
  2. Set width variable value to 0.3.
  3. Set proper first arguments according to the approach from the theory (displayed above). With the last .bar() function call display the mumbai data. Set label to 'Mumbai'.
  4. Set months as x ticks labels.

Cambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones

¿Todo estuvo claro?

Sección 2. Capítulo 6
toggle bottom row

Create a Grouped Bar Chart

Note

To build 2 columns, we need to set x - width/2 as the first parameter with the first .bar() call, and x + width/2 for the second. If we want to build three columns, we can use the following approach: x - width, x, and x + width.

Tarea

  1. Save data for 'MUMBAI CITY' in the mumbai variable and all unique values from the 'Month' column in the months variable.
  2. Set width variable value to 0.3.
  3. Set proper first arguments according to the approach from the theory (displayed above). With the last .bar() function call display the mumbai data. Set label to 'Mumbai'.
  4. Set months as x ticks labels.

Tarea

  1. Save data for 'MUMBAI CITY' in the mumbai variable and all unique values from the 'Month' column in the months variable.
  2. Set width variable value to 0.3.
  3. Set proper first arguments according to the approach from the theory (displayed above). With the last .bar() function call display the mumbai data. Set label to 'Mumbai'.
  4. Set months as x ticks labels.

Cambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones

¿Todo estuvo claro?

Note

To build 2 columns, we need to set x - width/2 as the first parameter with the first .bar() call, and x + width/2 for the second. If we want to build three columns, we can use the following approach: x - width, x, and x + width.

Tarea

  1. Save data for 'MUMBAI CITY' in the mumbai variable and all unique values from the 'Month' column in the months variable.
  2. Set width variable value to 0.3.
  3. Set proper first arguments according to the approach from the theory (displayed above). With the last .bar() function call display the mumbai data. Set label to 'Mumbai'.
  4. Set months as x ticks labels.

Cambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones
Sección 2. Capítulo 6
Cambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones
We're sorry to hear that something went wrong. What happened?
some-alt