santosjorge / cufflinks

Productivity Tools for Plotly + Pandas
MIT License
3.02k stars 675 forks source link

ImportError: cannot import name 'doc' #250

Open CindyQi7788 opened 4 years ago

CindyQi7788 commented 4 years ago

When I first setup the pycaret by

exp_clf = setup(DATA, numeric_features=['xxx'] , target='xxx')

It shows: Setup Succesfully Completed! But also shows error as below

~/anaconda3/envs/python3/lib/python3.6/site-packages/pandas/io/formats/style.py in 28 from pandas._typing import Axis, FrameOrSeries, FrameOrSeriesUnion, Label 29 from pandas.compat._optional import import_optional_dependency ---> 30 from pandas.util._decorators import doc 31 32 from pandas.core.dtypes.common import is_float

ImportError: cannot import name 'doc'

chen0143 commented 3 years ago

It migh be solved by changing the pandas's version.

Fairy-09 commented 3 years ago

what version of pandas can solve this problem?

RenatoMaynard commented 2 years ago

I solved the problem changing my pandas version to 1.0.4 using pip install pandas==1.0.4, i hope you can solve your problem!:)

RenatoMaynard commented 2 years ago

what version of pandas can solve this problem?

I solved the problem changing my pandas version to 1.0.4 using pip install pandas==1.0.4, i hope you can solve your problem!:)