'DataFrame' object has no attribute 'explode'
时间: 2023-09-06 21:14:54 浏览: 263
'DataFrame' object has no attribute 'explode'这个错误表示DataFrame对象没有"explode"属性。
在引用中出现的错误是因为DataFrame对象没有"_get_object_id"属性。
在引用中提到了在Pycharm中出现"AttributeError: 'DataFrame' object has no attribute 'score'"的错误。这个错误可能是因为DataFrame对象中没有名为"score"的属性。
在引用中提到了一个条件表达式"when(size(df_with_explode[column]) != 0, df_with_explode[column])"。这个条件表达式是希望根据条件判断来选择DataFrame列中的值,但是具体的上下文缺失,无法判断其含义。
所以,根据提供的引用内容,可以得出结论:'DataFrame' object没有"explode"、"_get_object_id"、"score"属性。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [PYSPARK:在dataframe中展开数组而不丢失空值:'dataframe'对象没有属性''u get'u object'u id'](https://blog.csdn.net/weixin_34785304/article/details/113894082)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* [# Pycharm关于AttributeError: ‘DataFrame’ object has no attribute ‘score’的错误](https://download.csdn.net/download/weixin_38720756/13749766)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文