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

Difficulty getting access to latest get_rejected_variables() functionality #11

Closed
proinsias opened this issue Apr 25, 2016 · 3 comments
Closed
Assignees

Comments

@proinsias
Copy link
Contributor

I installed pandas-profiling using:

pip install pandas-profiling

This gave me pandas-profiling 1.0.0a2, but the corresponding __init__.py file did not contain the get_rejected_variables() functionality.

I then cloned the git repo, and tried to install using:

python setup.py install

This gave me the zipped egg file in ~/anaconda3/envs/python2/lib/python2.7/site-packages, and I got an error that python could not find pandas_profiling.mplstyle because the pandas_profiling directory did not exist.

Finally, I extracted the egg file and move pandas_profiling into ~/anaconda3/envs/python2/lib/python2.7/site-packages, and got the new functionality.

Might be something I missed. Just letting you know.

@JosPolfliet JosPolfliet self-assigned this Apr 28, 2016
@JosPolfliet
Copy link
Contributor

That functionality is not committed to PyPi yet. Will do so over the weekend.

The zipped egg should contain the mplstyle file. I will look into it and try to recreate... stay tuned...

@beaunorgeot
Copy link

Greetings! Great project concept

Is this complete yet?
calls to get_rejected_variables() return an error for me:
AttributeError: 'DataFrame' object has no attribute 'correlation'

All other pandas_profiling functionality seems to work for me.

replicate:
import pandas as pd
import pandas_profiling
import numpy as np

ufo = pd.read_table('http://bit.ly/uforeports', sep=',', parse_dates=['Time'])
profile = pandas_profiling.ProfileReport(ufo)
rejected_variables = profile.get_rejected_variables(threshold=0.9)

romainx added a commit that referenced this issue Jan 1, 2018
Instead of throwing an error check if the correlation was computed. If not returns an empty list. This is a fix for #11.
@romainx
Copy link
Contributor

romainx commented Jan 2, 2018

The bug has been fixed by @conradoqg and merged on the master branch.
Regards.

@romainx romainx closed this as completed Jan 2, 2018
chanedwin referenced this issue in chanedwin/pandas-profiling Oct 11, 2020
Instead of throwing an error check if the correlation was computed. If not returns an empty list. This is a fix for #11.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants