小编Kat*_*Kat的帖子

`dplyr::arrange()` 对于外语文本不准确:是操作错误还是函数错误?`sort()` 正确执行

使用时dplyr::arrange(),它无法正确排序数据。这是一个例子:

\n
library(dplyr)\n\nwds <- structure(list(\n  Word = c("\xce\xb8\xce\xad\xcf\x83\xce\xb7", "\xcf\x84\xce\xb1\xcf\x87\xcf\x85\xce\xb4\xcf\x81\xce\xbf\xce\xbc\xce\xb5\xce\xaf\xce\xbf", "\xce\xb3\xcf\x81\xce\xb1\xce\xbc\xce\xbc\xce\xb1\xcf\x84\xcf\x8c\xcf\x83\xce\xb7\xce\xbc\xce\xbf", "\xcf\x80\xcf\x81\xce\xbf\xcf\x83\xcf\x80\xce\xac\xce\xb8\xce\xb5\xce\xb9\xce\xb1", "\xcf\x84\xce\xb7\xce\xbb\xce\xb5\xcf\x86\xcf\x89\xce\xbd\xcf\x8e", \n           "\xce\xb5\xcf\x80\xce\xb9\xce\xba\xce\xbf\xce\xb9\xce\xbd\xcf\x89\xce\xbd\xcf\x8e", "\xcf\x85\xcf\x80\xce\xbf\xce\xb3\xcf\x81\xce\xb1\xcf\x86\xce\xae", "\xce\xb3\xce\xbb\xcf\x8e\xcf\x83\xcf\x83\xce\xb1", "\xce\xad\xce\xbe\xce\xbf\xce\xb4\xce\xbf\xcf\x82", "\xce\xbc\xce\xae\xce\xbd\xcf\x85\xce\xbc\xce\xb1", \n           "\xcf\x80\xcf\x81\xce\xb1\xce\xb3\xce\xbc\xce\xb1\xcf\x84\xce\xb9\xce\xba\xcf\x8c\xcf\x84\xce\xb7\xcf\x84\xce\xb1", "\xce\xbc\xcf\x85\xcf\x83\xcf\x84\xce\xb9\xce\xba\xcf\x8c", "\xce\xb4\xce\xb9\xce\xb1\xce\xb4\xce\xaf\xce\xba\xcf\x84\xcf\x85\xce\xbf", "\xce\xb4\xce\xaf\xce\xba\xcf\x84\xcf\x85\xce\xbf"), \n  trans2 = c("the seat, position, job, post, station, status", \n             "the post office, postal service", "the postage stamp", \n             "the attempt (to do something), try (to accomplish something)",\n             "to phone, to telephone (the act of calling someone)", \n             "to talk, interact, contact, communicate", "the signature, (fig) agreement",\n             "the (anatomy, shoe, figuratively) tongue, language, (fish …
Run Code Online (Sandbox Code Playgroud)

r dplyr

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

由于 geweke 无法导入 pymc3 模块

我尝试将其安装在单独的环境中并arviz单独安装。是import pymc3 as pm行不通的。

AttributeError: module 'arviz' has no attribute 'geweke'
Run Code Online (Sandbox Code Playgroud)

python pymc3

4
推荐指数
1
解决办法
3821
查看次数

标签 统计

dplyr ×1

pymc3 ×1

python ×1

r ×1