TypeError Traceback (most recent call last)
Cell In[8], line 23
20 return smoothed_values
22 # Apply smoothing to thickness column
—> 23 df[‘smoothed_T’] = smooth_thickness(df[‘T’])
25 # Export modified DataFrame (optional)
26 df.to_excel(‘smoothed_thickness.xlsx’, index=False)
TypeError: tuple indices must be integers or slices, not str
I want to resolve it so I can extract the excel file from it which will be using in simulation later on
Saumya Chhatbar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.