我正在研究 Spyder (Anaconda)。自从我在 Windows 上工作以来,我总是收到几条错误消息。我已经在 Linux 中尝试过这段代码,并且成功了!from dfply import * 效果很好。
from dfply import *
from dfply.group import group_by #equivalent R dplyr
stat_logiso = select_chpsfinal >> group_by(X.Code_BSS, X.ancienBSS) >> summarise(nb_passes = X.ancienBSS.count(),
nblitho_na = X.lithologie.isna().sum(),
nbstrati_na = X.stratigraphie.isna().sum(),
pourclitho_na = (X.lithologie.isna().sum())/(X.ancienBSS.count())*100,
pourcstrati_na = (X.stratigraphie.isna().sum())/(X.ancienBSS.count())*100,
non_fiable = ((X.Niveau_validation == 0).sum())/(X.ancienBSS.count())*100,
fiable = ((X.Niveau_validation == 1).sum())/(X.ancienBSS.count())*100,
Tres_fiable = ((X.Niveau_validation == 2).sum())/(X.ancienBSS.count())*100)
在 spyder 我有第一条错误信息
DistutilsArgError: no commands supplied
SystemExit: usage: Moulinette_logcomplet.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: Moulinette_logcomplet.py --help [cmd1 cmd2 ...]
or: Moulinette_logcomplet.py --help-commands
or: Moulinette_logcomplet.py cmd --help
error: no commands supplied
在终端上,当我这样做时: Moulinette_logcomplet.py --help-commands ,我有另一个错误消息
from dfply.group import group_by #equivalent R dplyr
ModuleNotFoundError: No module named 'dfply.group'; 'dfply' is not a package
你知道出了什么问题吗?我必须安装一些东西吗?或卸载?谢谢