-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Not supported for DataFrames Exception triggered by a simple inspect.getmembers() call on a DataFrame #31474
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
Comments
This is caused by this in @property
def _constructor_expanddim(self):
raise NotImplementedError("Not supported for DataFrames!") If we would raise an |
Yes, that would be a solution. It would fix the Can you directly fix this or should I issue a pull request on the change? |
I guess you can issue a pull request, I'm not a pandas developer either. |
Fixes Python inspection of members - bug reported in pandas-dev#31474
Moving this off 1.0.1, but can likely include it if #31549 is updated in time. |
@TomAugspurger there is a 1.0.2 milestone for things that are not urgent enough for / blockers for 1.0.1, but still can be tracked for a bugfix release in general |
Moving off 1.0.2 |
Let's create a 1.0.3 milestone to move issues that might be relevant for a bugfix but don't make it to 1.0.2? (not sure it is necessarily relevant for this issue, but there might be others as well) |
I'd prefer to have a label for that type of thing, to avoid polluting the 1.0.3 milestone with stuff that isn't high-priority / actively being worked on. Perhaps labels for "Target: bugfix", "Target: minor", "Target: major", describing which release the PR is appropriate for? |
I'm running into problems with this when using python-fire. Did this fix ever get released? |
1.1 |
Code Sample, a copy-pastable example if possible
Problem description
A "Not supported for DataFrames Exception" is triggered by a simple inspect.getmembers() call on a DataFrame instance. There are some useful libraries like the Python 'fire' library which are disabled by this bug, which was not present in Pandas Release 0.24.2 but emerged in 0.25.0
Expected Output
A list of DataFrame members (without crashing)
Output of
pd.show_versions()
[paste the output of
pd.show_versions()
here below this line]INSTALLED VERSIONS
commit : None
python : 3.7.5.final.0
python-bits : 64
OS : Linux
OS-release : 5.3.0-26-generic
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 0.25.1
numpy : 1.18.1
pytz : 2019.3
dateutil : 2.8.1
pip : 20.0.2
setuptools : 45.1.0
Cython : None
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : None
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.11.1
IPython : None
pandas_datareader: None
bs4 : None
bottleneck : None
fastparquet : None
gcsfs : None
lxml.etree : None
matplotlib : None
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pytables : None
s3fs : None
scipy : None
sqlalchemy : None
tables : None
xarray : None
xlrd : None
xlwt : None
xlsxwriter : None
The text was updated successfully, but these errors were encountered: