0

I am using the below code to display histogram but it does not seems to show any fig. I have no idea why it does not work.

fig = px.histogram(
                    df,
                    x = 'age',
                    marginal = 'box',
                    nbins = 47,
                    title = 'Distribution of Age'
)
fig.update_layout(bargap = 0.1)
fig.show()
2
  • This seems to work on my system. Did you try restarting the kernel? Commented Jan 11 at 22:30
  • Thank you! restarting the kernel did the trick. Commented Jan 12 at 15:17

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.