0

I've been manipulating some data and I tried to plot it, with results that didn't make sense. dif_fl is an array with the dimension 4500, and dif_num is a float.

derivative = dif_fl/dif_num
with open('der.txt', 'w') as fout:
    derivative_str = str(derivative)
    fout.write(derivative_str)

The file der.txt looks like this:

[1.48088146e-38 1.59775424e-38 1.59922651e-38 ... 1.89016384e-16
 1.91981531e-16 1.92202686e-16]

This should be another 4500 array, shouldn't it? Is there something, I'm missing?

josha37
  • 19
  • 4

1 Answers1

0

Usually, this happens when there are too many items to be displayed .The ... means that there are more elements that are not shown right now.The only items that are shown are starting and ending items.This doesn't mean that you cannot access these items.

maria_g
  • 130
  • 1
  • 6
  • That's what I thought as well, when I tried to print it in my console. However, I figured, I could save the numbers in a file and review them that way. Is that possible somehow? – josha37 Jun 15 '20 at 10:33