Help please solve the problem!
I have a df (2178x4). It is necessary to calculate the average distance for m nearest neighbors for each point. Those. if m = 3, you need to select the three nearest neighbors, add the distances to them and divide by three. Then sort the resulting values in ascending order and plot. Thank you in advance!
import pandas as pd df=pd.read_csv('quake_clear.csv') df.head() 
{}on the toolbar. - Wiktor Stribiżew