小编Kar*_*hik的帖子

ValueError: min() arg 是一个空序列 - 探索性分析

需要帮忙。我正在做一项任务,需要进行探索性数据分析。

我已经安装了seaborn。使用下面的代码行绘制图表时

chart1 = sns.catplot(x = "JUNCTIONTYPE", data = df3, kind = "count",  col= "SEVERITYDESC")
chart1.set_xticklabels(rotation=35, horizontalalignment='right')
Run Code Online (Sandbox Code Playgroud)

我收到以下错误。


ValueError                                Traceback (most recent call last)
<ipython-input-30-d7f0b1b2a27f> in <module>
----> 1 chart1 = sns.catplot(x = "JUNCTIONTYPE", data = df3, kind = "count",  col= "SEVERITYDESC")
      2 chart1.set_xticklabels(rotation=35, horizontalalignment='right')

~/conda/envs/python/lib/python3.6/site-packages/seaborn/categorical.py in catplot(x, y, hue, data, row, col, col_wrap, estimator, ci, n_boot, units, order, hue_order, row_order, col_order, kind, height, aspect, orient, color, palette, legend, legend_out, sharex, sharey, margin_titles, facet_kws, **kwargs)
   3722     # so we need …
Run Code Online (Sandbox Code Playgroud)

exploratory seaborn

5
推荐指数
1
解决办法
3764
查看次数

如何更新 Pandas 中的 fsspec

我正在尝试使用 Pandasread_csv方法。一切都工作正常。我保存了所有内容并在第二天开始处理它,但后来我不断收到此错误:

ImportError: Pandas requires version '0.7.4' or newer of 'fsspec' (version '0.6.2' currently installed)
Run Code Online (Sandbox Code Playgroud)

我已将 pandas 更新到最新版本两次,以确保它是最新的。我不确定接下来要做什么来解决问题,如有任何建议,我们将不胜感激!

python pandas

5
推荐指数
2
解决办法
2万
查看次数

Colab 错误:ModuleNotFoundError:没有名为“geopandas”的模块

当我尝试在“Google Colaboratory”中导入 geopandas 包时,出现错误“ModuleNotFoundError:没有名为“geopandas”的模块”。

我会感谢你的帮助。提前致谢。

python geopandas google-colaboratory

3
推荐指数
1
解决办法
8285
查看次数