You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of anndata.
(optional) I have confirmed this bug exists on the master branch of anndata.
Report
Started appearing in several of ehrapy's tests with 2.1.2.
Traceback:
ehrapy/anndata/anndata_ext.py:226: in move_to_obs
adata.obs[num_var] = adata.obs[num_var].apply(pd.to_numeric, errors="ignore", downcast="float")
../../miniconda3/envs/ehrapy/lib/python3.11/site-packages/anndata/_core/views.py:69: in __setitem__
ifself._view_args isNone:
@final
def__getattr__(self, name: str):
"""
After regular attribute access, try looking up the name
This allows simpler access to columns for interactive use.
"""# Note: obj.x will always call obj.__getattribute__('x') prior to# calling obj.__getattr__('x').if (
name notinself._internal_names_set
and name notinself._metadata
and name notinself._accessors
andself._info_axis._can_hold_identifiers_and_holds_name(name)
):
returnself[name]
> return object.__getattribute__(self, name)
E AttributeError: 'DataFrameView' object has no attribute '_view_args'
../../miniconda3/envs/ehrapy/lib/python3.11/site-packages/pandas/core/generic.py:6204: AttributeError
Versions
Latest anndata
Pandas 2.1.2 (aka the forbidden one) and it works with 2.1.1
'DataFrameView' object has no attribute '_view_args' sounds like “.copy or so made a new DataFrameView when it should have made a DataFrame, and didn’t set all fields”
Please make sure these conditions are met
Report
Started appearing in several of ehrapy's tests with 2.1.2.
Traceback:
Versions
Latest anndata
Pandas 2.1.2 (aka the forbidden one) and it works with 2.1.1
But it's not #1210
The text was updated successfully, but these errors were encountered: