成功解决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)

哈哈,大功告成!

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


相关文章
|
8月前
|
算法框架/工具
Keras报错:TypeError: (‘Keyword argument not understood:‘, ‘offset‘)
Keras报错:TypeError: (‘Keyword argument not understood:‘, ‘offset‘)
122 0
成功解决TypeError: ‘encoding’ is an invalid keyword argument for this function
成功解决TypeError: ‘encoding’ is an invalid keyword argument for this function
TypeError: custom() got an unexpected keyword argument ‘path‘
TypeError: custom() got an unexpected keyword argument ‘path‘
116 0
|
TensorFlow 算法框架/工具
解决TypeError: tf__update_state() got an unexpected keyword argument ‘sample_weight‘
解决TypeError: tf__update_state() got an unexpected keyword argument ‘sample_weight‘
242 0
解决TypeError: tf__update_state() got an unexpected keyword argument ‘sample_weight‘
|
计算机视觉
成功解决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'
|
Python
SyntaxError: Missing parentheses in call to 'print'
SyntaxError: Missing parentheses in call to 'print'
115 0
TypeError: 'encoding' is an invalid keyword argument for this function
TypeError: 'encoding' is an invalid keyword argument for this function
235 0
成功解决TypeError: read_excel() got an unexpected keyword argument ‘parse_cols or ‘sheetname‘
成功解决TypeError: read_excel() got an unexpected keyword argument ‘parse_cols or ‘sheetname‘
成功解决TypeError: distplot() got an unexpected keyword argument ‘y‘
成功解决TypeError: distplot() got an unexpected keyword argument ‘y‘