2

I have an array of size 1000. I want to resize this array to 400 points.

I can't do truncation. Averaging is ok. Another way to this is to take every 2.5th element. But I can't do this 2.5 operation. How shall I appraoch this problem?

Nygen Patricia
  • 229
  • 2
  • 8
  • With numpy you can do non-integer array resampling as explained by [Resample a numpy array](https://stackoverflow.com/questions/29085268/resample-a-numpy-array) – DarrylG Feb 01 '21 at 20:10
  • Is numpy a possibility? Or only pure Python? – dawg Feb 01 '21 at 20:14

0 Answers0