Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

新疆、西藏、宁夏、广西 识别不了 #3

Closed
chinobing opened this issue Jul 27, 2018 · 3 comments
Closed

新疆、西藏、宁夏、广西 识别不了 #3

chinobing opened this issue Jul 27, 2018 · 3 comments

Comments

@chinobing
Copy link

chinobing commented Jul 27, 2018

试了多遍都是这个情况,可能是bug,反馈一下。

from cpca import *

location_str = ["新疆","广西","宁夏","西藏"]
df = transform(location_str)
print(df)

输出:

区 市 省
0      
1      
2      
3      
@chinobing chinobing changed the title 新疆 识别不了 新疆、西藏、宁夏 识别不了 Jul 27, 2018
@chinobing chinobing changed the title 新疆、西藏、宁夏 识别不了 新疆、西藏、宁夏、广西 识别不了 Jul 27, 2018
@DQinYuan
Copy link
Owner

DQinYuan commented Aug 2, 2018

因为库中把他们分别叫做“新疆维吾尔自治区”, “广西壮族自治区”,“宁夏回族自治区”,“西藏自治区”。
忘记收录他们的简称了,等我有空加上

比如:

from cpca import *

location_str = ["新疆维吾尔自治区","广西壮族自治区","宁夏回族自治区","西藏自治区"]
df = transform(location_str)
print(df)

输出:

     区           市             省
0
1                       广西壮族自治区
2                       宁夏回族自治区
3                          西藏自治区

@chinobing
Copy link
Author

居然不按套路出牌 -。-

@DQinYuan
Copy link
Owner

DQinYuan commented Aug 2, 2018

bug修好了,使用 pip install --upgrade cpca 更新一下

from cpca import *

location_str = ["新疆","广西","宁夏","西藏"]
df = transform(location_str)
print(df)

输出:

  区 市   省
0        新疆
1        广西
2        宁夏
3        西藏

欢迎反馈更多的错误用例

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants