首页 > 解决方案 > 我第一次使用 jupyter。这是我练习的第一个例子。我的代码如下:

问题描述

---------------------------------------------------------------------------
1 viz = cdf[['Quantity Ordered','Price Each']]
2 df.hist(column='Price Each')

Error:
...
    210     plot_backend = _get_plot_backend(backend)
--> 211     return plot_backend.hist_frame(
    212         data,
    213         column=column,
....

    414     if naxes == 0:
--> 415         raise ValueError("hist method requires numerical columns, nothing to plot.")
    416 
    417     fig, axes = _subplots(

ValueError: hist method requires numerical columns, nothing to plot.

标签: pythonjupyter-notebook

解决方案


推荐阅读