ch08 - error in example
anicelysantos opened this issue · comments
Anicely Santos commented
Hi, i am having the following error when running this example.
pd.concat([s1,s4], axis=1, join_axes=[['a','c','b','e']])
TypeError: concat() got an unexpected keyword argument 'join_axes'
Can someone help me please?
I saw that this option was discontinued, but I don't know how to adapt the example.
Wes McKinney commented
I believe it's
pd.concat([s1,s4], axis=1).reindex(columns=['a','c','b','e'])
I'm working (slowly) on the 3rd edition and will fix this along with fixing up any other broken / deprecated code examples