成功解决TypeError: concat() got an unexpected keyword argument ‘join_axes‘

简介: 成功解决TypeError: concat() got an unexpected keyword argument ‘join_axes‘


目录

解决问题

解决思路

解决方法


解决问题

TypeError: concat() got an unexpected keyword argument 'join_axes'

解决思路

类型错误:concat()得到一个意外的关键字参数'join_axes'

解决方法

得到原因:"join_axes" was deprecated in version 0.25 for some reason. You can achieve the same effect by reindexing.

可知"join_axes"在0.25版中已弃用,故可采用merge函数代替concat函数,join_axes参数可采用on参数替代!

推荐文章Python之Pandas:pandas系列自定义函数封装(将数据表格文件进行横向拼接/纵向拼接)

1. df_concat05 = pd.merge(data_frameA, data_frameC, on='name', how='inner')
2. print('merge_inner………… \n',df_concat05)

哈哈,大功告成!

文章知识点与官方知识档案匹配,可进一步学习相关知识


相关文章
成功解决TypeError: ‘encoding’ is an invalid keyword argument for this function
成功解决TypeError: ‘encoding’ is an invalid keyword argument for this function
|
4月前
|
机器学习/深度学习 Python
【Python】已解决TypeError: init() got an unexpected keyword argument ‘threshold’
【Python】已解决TypeError: init() got an unexpected keyword argument ‘threshold’
145 0
|
4月前
|
开发者 Python
【Python】已解决:SyntaxError: positional argument follows keyword argument
【Python】已解决:SyntaxError: positional argument follows keyword argument
189 0
|
算法框架/工具
Keras报错:TypeError: (‘Keyword argument not understood:‘, ‘offset‘)
Keras报错:TypeError: (‘Keyword argument not understood:‘, ‘offset‘)
189 0
TypeError: custom() got an unexpected keyword argument ‘path‘
TypeError: custom() got an unexpected keyword argument ‘path‘
151 0
|
计算机视觉
成功解决TypeError: __init__() got an unexpected keyword argument 'n_iterations'
成功解决TypeError: __init__() got an unexpected keyword argument 'n_iterations'
成功解决TypeError: __init__() got an unexpected keyword argument 'serialized_options'
成功解决TypeError: __init__() got an unexpected keyword argument 'serialized_options'
|
TensorFlow 算法框架/工具
解决TypeError: tf__update_state() got an unexpected keyword argument ‘sample_weight‘
解决TypeError: tf__update_state() got an unexpected keyword argument ‘sample_weight‘
277 0
解决TypeError: tf__update_state() got an unexpected keyword argument ‘sample_weight‘
TypeError: cannot concatenate ‘str‘ and ‘list‘ objects
TypeError: cannot concatenate ‘str‘ and ‘list‘ objects
TypeError: 'encoding' is an invalid keyword argument for this function
TypeError: 'encoding' is an invalid keyword argument for this function
270 0