camelot icon indicating copy to clipboard operation
camelot copied to clipboard

cannot import name 'get_compression_method' from 'pandas.io.common' and 'is_url' from pandas

Open marcecevallos opened this issue 4 years ago • 15 comments

Hi, I have been searching from this error online, but apparently Im the first one to have a problem pandas related while with camelot:

test[0].to_csv("foo.csv") results in: ImportError: cannot import name 'get_compression_method' from 'pandas.io.common' (C:\Users\marce\Anaconda3\lib\site-packages\pandas\io\common.py)

image

marcecevallos avatar Feb 09 '20 14:02 marcecevallos

The previous line also retrieves an error: image

marcecevallos avatar Feb 09 '20 14:02 marcecevallos

Having the same issue as well currently.

pretishck avatar Feb 26 '20 21:02 pretishck

@pretishck @marcecevallos I had a similar issue and it was due to using an older version of pandas, can you try conda update -c conda-forge pandas?

brendancol avatar Feb 28 '20 18:02 brendancol

Current issue appear today

hdaijay avatar Mar 04 '20 21:03 hdaijay

@brendancol my issue came up because mine was the latest version :D. I downgraded it and resumed coding

pretishck avatar Mar 04 '20 21:03 pretishck

@brendancol my issue came up because mine was the latest version :D. I downgraded it and resumed coding

May I know which version of Pandas work ?

hdaijay avatar Mar 04 '20 21:03 hdaijay

Pandas 0.25.1

pretishck avatar Mar 04 '20 22:03 pretishck

I am having the same issue with Pandas 0.23.4. Any update on this?

elmir-ma avatar Mar 06 '20 17:03 elmir-ma

Pandas 0.25.1

Thnaks, this works :)

manaskumarpradhan avatar Mar 07 '20 07:03 manaskumarpradhan

Even though my python version is older but i havent chanaged anything on my computer except data it was working fine month back and now it is not.

divatemangesh avatar May 26 '20 12:05 divatemangesh

If using pypi, I had the same problem with the latest version 1.0.4. Uninstalling and installing again fixed the problem.

mobiuscreek avatar Jun 10 '20 15:06 mobiuscreek

Same in pandas-1.0.5

tchaton avatar Jun 23 '20 07:06 tchaton

uninstalling and installing pandas again helped me. I faced this issue after I upgraded joblib.

GARV3007 avatar Jul 25 '20 14:07 GARV3007

For me pip install pandas==1.1.3 has worked

ravichaurasia avatar Oct 14 '20 07:10 ravichaurasia

For me pip install pandas==0.25.3 worked.

anirbansaha96 avatar Apr 19 '21 09:04 anirbansaha96