St.dataframe: the help argument disappeared

Hello,
I have updated to the latest streamlit version: Streamlit, version 1.21.0.
I am trying to use the st.dataframe with the help argument.

st.dataframe(df_measure,help="this is the help")
I am getting the following error:
TypeError: dataframe() got an unexpected keyword argument 'help'
Was this removed from the st.dataframe ?
and how can we display a help icon for the dataframe?
Thank you

In which version of Streamlit did dataframe take a help argument?

I don’t know. But when checking with the famous chatGPT it responded with:

Yes, you can add a help text to the st.dataframe method in Streamlit by using the help parameter. Here’s an example of how you can do this:


import streamlit as st
import pandas as pd

Load your DataFrame

df = pd.read_csv(‘your_data.csv’)

Display the DataFrame with a help text

st.dataframe(df, help=“This is a DataFrame displaying data from ‘your_data.csv’”)

In this example, we use the st.dataframe method to display a DataFrame in Streamlit, and we specify a help text using the help parameter. When the user hovers their mouse over the ⓘ icon next to the displayed DataFrame, the help text will be displayed.

What ChatGPT says doesn’t magically become true. You’d better trust the documentation more than ChatGPT.

1 Like

:+1:

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.