【问题标题】:Not able to display add labels to existing data无法向现有数据显示添加标签
【发布时间】:2022-11-03 02:47:45
【问题描述】:

我正在尝试在 jupyter 中执行此单元格但抛出以下错误尝试了不同的方法来解决但没有用

这是引发错误的行 data['label'] = data['label'].apply(lambda x:labelling(x))

KeyError Traceback(最近一次调用最后一次) ~\Anaconda3\lib\site-packages\pandas\core\indexes\base.py in get_loc(self、key、method、tolerance) . . . 键错误:'标签'

Screenshot of cell screenshot of error

I think the output is supposed to be like this

【问题讨论】:

  • 你的问题不完整

标签: python pandas jupyter-notebook


【解决方案1】:

什么错误没有显示兄弟请把你的问题不完整的图像。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-01-22
    • 1970-01-01
    • 2014-02-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多