A more pythonic (or vectorised) function to drop slices of an array that are all nan

前端 未结 0 1942
Happy的楠姐
Happy的楠姐 2021-01-12 06:40

I have a 4D array, of which 3D \'slices\' in the first dimension are sometimes all nans. I\'m looking for a pythonic way to prune these. Currently I\'m using a for loop and

相关标签:
回答
  • 消灭零回复
提交回复
热议问题