Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error with importing pandas in python3 'TypeError: descriptor '__subclasses__' of 'type' object needs an argument'

the command import pandas as pd in Python 3.5.2 gives an error :

'TypeError: descriptor '__subclasses__' of 'type' object needs an argument'

This happens only with Python3 and Python 2 imports pandas just fine. I searched the error code and applied the suggestions others provided, which didn't work for me.

like image 499
Eser İşler Avatar asked May 15 '26 05:05

Eser İşler


1 Answers

Update your python to 3.5.3+ version. It starts with the 0.25.x pandas series.

From the pandas documentation:

Officially Python 3.5.3 and above, 3.6, and 3.7.

like image 196
Anton Belsky Avatar answered May 16 '26 19:05

Anton Belsky



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!