-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: Creating an empty dataframe #40179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This works for me on master with numpy 1.20 Please show your versions and traceback
INSTALLED VERSIONS
------------------
commit : b835ca2
python : 3.8.6.final.0
python-bits : 64
OS : Linux
OS-release : 5.8.0-44-generic
Version : #50~20.04.1-Ubuntu SMP Wed Feb 10 21:07:30 UTC 2021
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8
pandas : 1.3.0.dev0+909.gb835ca2fc2 Process finished with exit code 0 |
python 3.8 numpy: 1.20.1 |
Please try on newer pandas, 1.2.3 came out yesterday |
Well, I see I have an older version of Pandas. It's ok now after update to the latest version. Sorry. :) |
An empty dataframe can't be created because this error is raised when I try it:
AttributeError: type object 'object' has no attribute 'dtype'
Based on this, it's caused by numpy version. If I install numpy 1.19.5, empty dataframe is created but if I install numpy 1.20.0 (or newer), the error above is raised.
Can this bug be fixed in pandas or in numpy?
Thank you.
The text was updated successfully, but these errors were encountered: