Код: Выделить всё
iso country year gdp_per_c Scenario
AFG Afghanistan 2030 0.3890 SSP1-2.6
AFG Afghanistan 2040 0.6465 SSP1-2.6
AFG Afghanistan 2030 0.2106 SSP2-4.5
AFG Afghanistan 2040 0.3635 SSP2-4.5
Код: Выделить всё
fig=px.bar(filtered_AFG, x='year',
y='gdp_per_c',
color='Scenario',
barmode='group'
)
fig.update_layout(title_font_size=24)
fig.update_xaxes(showgrid=True)
fig.show()
Я знаю
Код: Выделить всё
from IPython.core.interactiveshell import InteractiveShell
InteractiveShell.ast_node_interactivity = "all"
Также pio.renders.default =plotly_mimetype+notebook
Может ли это быть причиной этого?