dear sir,
I am attempting to retrieve a specific cell value using the following code: “st.write(drug_df[‘columnname’][2].values[0])”. However, I am encountering an error. I would appreciate your guidance on how to correctly obtain the cell value by specifying the row and column identifiers in the dataframe. Your assistance in providing the correct code would be greatly beneficial to me.
st.write(drug_df['columnname'][2])
is probably enough.