-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
TypeError: Cannot cast array data from dtype('float64') to dtype('<U32') according to the rule 'safe'` #485
Comments
Hi @matej14086 I have tried producing your reported issue with the versions you reported and I have not been able to reproduce the issue from the code snippet above. I tested with Python 3.6.4 and Python 3.5 and the code runs fine with The error suggests that numpy is complaining the data is not numeric but string. Could you try and run this is a normal python terminal (not ipython) and just check that you get the same result. Perhaps there is something unseen in a copy and paste. If you still get errors, could you also report what version of pandas you are using as well. |
I downgraded pandas from version 0.24.0 to 0.23.4 and now everything works fine, so this is pandas issue. |
Had the same issue |
I created an issue about this on pandas project. pandas-dev/pandas#25087 |
Thanks for spotting this, will limit pandas version to 0.23.4 |
same issue, with pandas it works 0.23.4 |
So, using pandas 0.23.4 fixes it for you? |
@MaxBenChrist yes it does! :) |
I am having same issue, the only problem is that I already have pandas 0.23.4 .... |
Can you please post the output of |
I am also having the same issue. My pandas version is 0.24.2. Is there any solution instead of downgrading? Aside -- For time-series length < 1000. It seems to be working for me (atleast). |
Same issue - can confirm that downgrading to 23.4 fixes it. Love tracing pandas bugs, i somehow already found 2 this quarter. |
Same issue- Solved by downgrading to pandas 0.23.4. My tsfresh version is 0.11.2. numpy version is 1.16.3. |
The example works perfectly well for me with
|
We have excluded the "bad" pandas versions and are now on a newer one. |
1.OS: Ubuntu 18.04.1 LTS
2. tsfresh version = 0.11.0
numpy==1.16.0
I keep getting following error:
when I run:
Same error occurs when I try to run it with real data.
The text was updated successfully, but these errors were encountered: