Is there a conveinent way to index a pandas dataframe based on the approximate location of a number?
I am analyzing some optical spectra data and my dataframe indices are numbers that have some 9 decimal place accuracy. If I don’t type in the exact index, the dataframe won’t return a value. I am having to use df.iloc(N), but this requires me to continue guessing which index is closest to the desired index. Isn’t there some way where I type in df[600], it provides me index closest to that number?