0

Currently after importing the data the datatype is float64, but I want to change this to float128, since the data I am using is very large.

Below you can find the code I have tried:

df1m = pd.read_csv('btcusd.csv')     # import dataset
df1m = df1m.astype('float128')       # change to float128

But this gives the following error: TypeError: data type "float128" not understood

I have looked around on stackoverflow but I couldn't find an answer... Hopefully you can help me!

7
  • 1
    from reading this question, it would seem that float128 doesnt work on windows. are you on windows? Commented Feb 3, 2021 at 9:59
  • which pandas version u r using? In my linux system it works. pandas==1.1.0 Commented Feb 3, 2021 at 9:59
  • @Nullman -> I am indeed on Windows Commented Feb 3, 2021 at 10:00
  • @Pygirl -> I just checked and I am using version 1.0.1 -> I would probably need to update pandas? Commented Feb 3, 2021 at 10:01
  • this answer your problem. Commented Feb 3, 2021 at 10:03

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.