Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

concat() got an unexpected keyword argument 'join_axes' #438

Closed
learninlearn opened this issue Apr 17, 2020 · 9 comments
Closed

concat() got an unexpected keyword argument 'join_axes' #438

learninlearn opened this issue Apr 17, 2020 · 9 comments
Labels
information requested ❔ Cannot reproduce, waiting for minimum reproduction details.

Comments

@learninlearn
Copy link

US_Accidents_May19.csv from kaggle

@learninlearn
Copy link
Author

TypeError Traceback (most recent call last)
in
1 import pandas_profiling as pp
----> 2 pp.ProfileReport(df.iloc[[0,10]])

E:\Anaconda3\lib\site-packages\pandas_profiling_init_.py in init(self, df, **kwargs)
64 sample = kwargs.get('sample', df.head())
65
---> 66 description_set = describe(df, **kwargs)
67
68 self.html = to_html(sample,

E:\Anaconda3\lib\site-packages\pandas_profiling\describe.py in describe(df, bins, check_correlation, correlation_threshold, correlation_overrides, check_recoded, pool_size, **kwargs)
390 if name not in names:
391 names.append(name)
--> 392 variable_stats = pd.concat(ldesc, join_axes=pd.Index([names]), axis=1)
393 variable_stats.columns.names = df.columns.names
394

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

@sbrugman
Copy link
Collaborator

Could you provide the minimal information to reproduce this error?

  • the minimal code you are using to generate the report
  • which environment you are using (jupyter notebook, console or IDE) and packages (pip freeze > packages.txt)
  • a sample or description of the dataset (df.head(), df.info())

@sbrugman sbrugman added the information requested ❔ Cannot reproduce, waiting for minimum reproduction details. label Apr 17, 2020
@learninlearn
Copy link
Author

Could you provide the minimal information to reproduce this error?

  • the minimal code you are using to generate the report
  • which environment you are using (jupyter notebook, console or IDE) and packages (pip freeze > packages.txt)
  • a sample or description of the dataset (df.head(), df.info())

Yeah, I just a few codes and I just want to check these package with jupyter notebook

image

image

image

@sbrugman
Copy link
Collaborator

Which versions of pandas as pandas-profiling do you have installed?

@learninlearn
Copy link
Author

pandas 1.0.3
pandas-profiling 1.4.1

@janhurst
Copy link

janhurst commented Apr 19, 2020

the pd.concat join_axes kwarg was deprecated around pandas 0.25 and removed in pandas 1.0.0

https://pandas.pydata.org/pandas-docs/version/1.0.0/whatsnew/v1.0.0.html#other-api-changes

also see pandas-dev/pandas#21951 and pandas-dev/pandas#22318

@loopyme
Copy link
Contributor

loopyme commented Apr 19, 2020

I think update pandas-profiling will solve this problem.

Besides, this issue is same as #401

@sbrugman sbrugman closed this as completed May 7, 2020
@nickcorona
Copy link

nickcorona commented Jan 18, 2021

This problem occurs on even the latest version of pandas-profiling.

@gmivan
Copy link

gmivan commented Apr 7, 2021

I fixed the same issue in the example bellow by changing "join_axes" operator to "keys" operator. It works.

Before:
dfsubmit = pd.concat([TestdataID['PassengerId'], dfPrediction['Survived']], axis = 1, join_axes=[TestdataID['PassengerId'].index])
dfsubmit = dfsubmit.reset_index(drop=True)

After:
dfsubmit = pd.concat([TestdataID['PassengerId'], dfPrediction['Survived']], axis = 1, keys=[TestdataID['PassengerId'].index])
dfsubmit = dfsubmit.reset_index(drop=True)

@ydataai ydataai locked and limited conversation to collaborators Apr 7, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
information requested ❔ Cannot reproduce, waiting for minimum reproduction details.
Projects
None yet
Development

No branches or pull requests

6 participants