Skip to content

AttributeError: type object 'NDFrame' has no attribute 'groupby' #133

Open
@gfranco008

Description

@gfranco008

AttributeError: type object 'NDFrame' has no attribute 'groupby'

from pandas_ml import ConfusionMatrix
cm = ConfusionMatrix(actu, pred)
cm.print_stats()


AttributeError Traceback (most recent call last)
in
----> 1 from pandas_ml import confusion_matrix
2
3 cm = ConfusionMatrix(actu, pred)
4 cm.print_stats()

/usr/local/lib/python3.8/site-packages/pandas_ml/init.py in
1 #!/usr/bin/env python
2
----> 3 from pandas_ml.core import ModelFrame, ModelSeries # noqa
4 from pandas_ml.tools import info # noqa
5 from pandas_ml.version import version as version # noqa

/usr/local/lib/python3.8/site-packages/pandas_ml/core/init.py in
1 #!/usr/bin/env python
2
----> 3 from pandas_ml.core.frame import ModelFrame # noqa
4 from pandas_ml.core.series import ModelSeries # noqa

/usr/local/lib/python3.8/site-packages/pandas_ml/core/frame.py in
16 from pandas_ml.core.accessor import _AccessorMethods
17 from pandas_ml.core.generic import ModelPredictor, _shared_docs
---> 18 from pandas_ml.core.series import ModelSeries
19
20

/usr/local/lib/python3.8/site-packages/pandas_ml/core/series.py in
9
10
---> 11 class ModelSeries(ModelTransformer, pd.Series):
12 """
13 Wrapper for pandas.Series to support sklearn.preprocessing

/usr/local/lib/python3.8/site-packages/pandas_ml/core/series.py in ModelSeries()
78 return df
79
---> 80 @appender(pd.core.generic.NDFrame.groupby.doc)
81 def groupby(self, by=None, axis=0, level=None, as_index=True, sort=True,
82 group_keys=True, squeeze=False):

AttributeError: type object 'NDFrame' has no attribute 'groupby'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions