Guided Project: Visualizing The Gender Gap In College Degrees; step 2

it’s a mess of stuff, so i’m just gonna put my notebook in here.
Basics (2).ipynb (869.0 KB)

i’ve looked at the recommended solution, and i’m not sure why exactly mine doesn’t work.

i like the format of how i’ve coded mine, but if it doesn’t work it doesn’t work.

it’s repeating a single category’s title, and printing a chaotic mess of lines.
edit:
converted at line 11

fig = plt.figure(figsize=(12,32))

to

fig = plt.figure(figsize=(16, 20))

still a chaotic mess, but a recognizable chaotic mess.

Click here to view the jupyter notebook file in a new tab

thanks for edit sahil.

solved by replacing for loops with if statements.

1 Like