Skip to content

Commit db5979a

Browse files
hurray for tests
1 parent a3d2aff commit db5979a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/python/px-arguments.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ import plotly.express as px
124124
import pandas as pd
125125

126126
df = px.data.gapminder()
127-
gdp = gapminder['pop'] * gapminder['gdpPercap']
127+
gdp = df['pop'] * df['gdpPercap']
128128
fig = px.bar(df, x='year', y=gdp, color='continent', labels={'y':'gdp'},
129129
hover_data=['country'],
130130
title='Evolution of world GDP')
@@ -191,7 +191,7 @@ import numpy as np
191191
import pandas as pd
192192

193193
df = px.data.gapminder()
194-
gdp = np.log(df['pop'] * gapminder['gdpPercap']) # NumPy array
194+
gdp = np.log(df['pop'] * df['gdpPercap']) # NumPy array
195195
fig = px.bar(df, x='year', y=gdp, color='continent', labels={'y':'log gdp'},
196196
hover_data=['country'],
197197
title='Evolution of world GDP')

0 commit comments

Comments
 (0)