79181572

Date: 2024-11-12 14:45:27
Score: 1
Natty:
Report link

You are iterating in horizontal direction, i.e. the columns must have numerical type, but you have string: "Flux_min", ...

So do something like

df=synth_spectra_df
df.columns=np.linspace(0,3)
df.interpolate(method='spline', order=2, axis=1)

and copy the interpolated result back to synth_spectra_df

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: kameamea