TypeError: unhashable type: 'numpy.ndarray'

df_agg_diff.iloc[:,numeric_cols] = (df_agg_diff.iloc[:,numeric_cols] - median_agg).div(median_agg)

this is code is executing okk.
But when streamlit is rendering the program, its showing the error,
TypeError: TypeError: unhashable type: ‘numpy.ndarray’
Please anyone help me out.

Please show us the full code and provide a link to your github repo.

May not be the solution, but make sure numpy version is the same on the environments (local and online).

print(np.version.version)