【问题标题】:My Error: unknown extension ?Pd at position 1我的错误:未知扩展 ?Pd 在位置 1
【发布时间】:2021-10-11 02:24:26
【问题描述】:

我看到了这个错误:

位置 1 处的未知扩展 ?Pd

temp_nums = weather["temp"].str.extract("(?Pd+)", expand=False)
weather["temp_num"] = temp_nums.astype('int')
temp_nums

【问题讨论】:

    标签: kaggle


    【解决方案1】:

    在上面写着(?Pd+) 的地方,输入(?P<temp_num>\d+) 而不是像他们在这个上所做的那样 example.

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-03-04
      • 1970-01-01
      • 2013-01-18
      • 2016-04-01
      • 2012-12-03
      • 1970-01-01
      • 1970-01-01
      • 2022-07-07
      相关资源
      最近更新 更多