小编sab*_*les的帖子

"min()arg是一个空序列",试图将我的熊猫情节转换为情节

ValueError: min() arg is an empty sequence试图将pandas数据帧图转换为plotly时收到一个.

以下是数据帧的示例(使用NaN):

ttab.loc[:,:"Irish"]

Group   English (British)   Americans (White)   Canadians   Scots   Irish
Year                    
1926    1   2   3   4   5
1946    3   1   2   5   4
1956    3   1   2   7   5
1966    2   1   3   9   5
1977    2   1   3   9   7
1993    2   NaN NaN 6   1
2001    4   1   3   NaN 5
2001*   4   1   3   NaN 5
2012    4   1   3   NaN 6
Run Code Online (Sandbox Code Playgroud)

我做了一个漂亮的情节:

# Time It
import time …
Run Code Online (Sandbox Code Playgroud)

python matplotlib pandas plotly

7
推荐指数
1
解决办法
3726
查看次数

标签 统计

matplotlib ×1

pandas ×1

plotly ×1

python ×1