我有一个 numpy 数组:
array([ 2.86656000e+09, 2.86688000e+09, 2.86708000e+09,
2.86860000e+09, 2.86884000e+09, 2.86908000e+09,
2.86920000e+09, 2.87024000e+09, 2.87040000e+09,
2.87056000e+09, 2.87076000e+09, 2.87108000e+09,
2.87120000e+09, 2.87152000e+09, 2.87260000e+09,
2.87272000e+09, 2.87280000e+09, 2.87448000e+09,
2.87464000e+09, 2.87476000e+09, 2.87484000e+09])
对相似值进行分组的最佳方法是什么(例如,差异不大于 1000000)?谢谢解答!!