def dataframe(self, data=None, width=None, height=None):
    "Display a dataframe as an interactive table.\n\n        Parameters\n        ----------\n        data : pandas.DataFrame, pandas.Styler, numpy.ndarray, Iterable, dict,\n            or None\n            The data to display.\n\n            If 'data' is a pandas.Styler, it will be used to style its\n            underyling DataFrame. Streamlit supports custom cell\n            values and colors. (It does not support some of the more exotic\n            pandas styling features, like bar charts, hovering, and captions.)\n            Styler support is experimental!\n        width : int or None\n            Desired width of the UI element expressed in pixels. If None, a\n            default width based on the page width is used.\n        height : int or None\n            Desired height of the UI element expressed in pixels. If None, a\n            default height is used.\n\n        Examples\n        --------\n        >>> df = pd.DataFrame(\n        ...    np.random.randn(50, 20),\n        ...    columns=('col %d' % i for i in range(20)))\n        ...\n        >>> st.dataframe(df)  # Same as st.write(df)\n\n        .. output::\n           https://share.streamlit.io/0.25.0-2JkNY/index.html?id=165mJbzWdAC8Duf8a4tjyQ\n           height: 330px\n\n        >>> st.dataframe(df, 200, 100)\n\n        You can also pass a Pandas Styler object to change the style of\n        the rendered DataFrame:\n\n        >>> df = pd.DataFrame(\n        ...    np.random.randn(10, 20),\n        ...    columns=('col %d' % i for i in range(20)))\n        ...\n        >>> st.dataframe(df.style.highlight_max(axis=0))\n\n        .. output::\n           https://share.streamlit.io/0.29.0-dV1Y/index.html?id=Hb6UymSNuZDzojUNybzPby\n           height: 285px\n\n        "
    import streamlit.elements.data_frame_proto as data_frame_proto

    def set_data_frame(delta):
        data_frame_proto.marshall_data_frame(data, delta.data_frame)
    return self._enqueue_new_element_delta(set_data_frame, 'dataframe', element_width=width, element_height=height)
Display a dataframe as an interactive table.

Parameters
----------
data : pandas.DataFrame, pandas.Styler, numpy.ndarray, Iterable, dict,
    or None
    The data to display.

    If 'data' is a pandas.Styler, it will be used to style its
    underyling DataFrame. Streamlit supports custom cell
    values and colors. (It does not support some of the more exotic
    pandas styling features, like bar charts, hovering, and captions.)
    Styler support is experimental!
width : int or None
    Desired width of the UI element expressed in pixels. If None, a
    default width based on the page width is used.
height : int or None
    Desired height of the UI element expressed in pixels. If None, a
    default height is used.

Examples
--------
>>> df = pd.DataFrame(
...    np.random.randn(50, 20),
...    columns=('col %d' % i for i in range(20)))
...
>>> st.dataframe(df)  # Same as st.write(df)

.. output::
   https://share.streamlit.io/0.25.0-2JkNY/index.html?id=165mJbzWdAC8Duf8a4tjyQ
   height: 330px

>>> st.dataframe(df, 200, 100)

You can also pass a Pandas Styler object to change the style of
the rendered DataFrame:

>>> df = pd.DataFrame(
...    np.random.randn(10, 20),
...    columns=('col %d' % i for i in range(20)))
...
>>> st.dataframe(df.style.highlight_max(axis=0))

.. output::
   https://share.streamlit.io/0.29.0-dV1Y/index.html?id=Hb6UymSNuZDzojUNybzPby
   height: 285px
def dataframe(self, data=None, width=None, height=None):
    "Display a dataframe as an interactive table.\n\n        Parameters\n        ----------\n        data : pandas.DataFrame, pandas.Styler, numpy.ndarray, Iterable, dict,\n            or None\n            The data to display.\n\n            If 'data' is a pandas.Styler, it will be used to style its\n            underyling DataFrame. Streamlit supports custom cell\n            values and colors. (It does not support some of the more exotic\n            pandas styling features, like bar charts, hovering, and captions.)\n            Styler support is experimental!\n        width : int or None\n            Desired width of the UI element expressed in pixels. If None, a\n            default width based on the page width is used.\n        height : int or None\n            Desired height of the UI element expressed in pixels. If None, a\n            default height is used.\n\n        Examples\n        --------\n        >>> df = pd.DataFrame(\n        ...    np.random.randn(50, 20),\n        ...    columns=('col %d' % i for i in range(20)))\n        ...\n        >>> st.dataframe(df)  # Same as st.write(df)\n\n        .. output::\n           https://share.streamlit.io/0.25.0-2JkNY/index.html?id=165mJbzWdAC8Duf8a4tjyQ\n           height: 330px\n\n        >>> st.dataframe(df, 200, 100)\n\n        You can also pass a Pandas Styler object to change the style of\n        the rendered DataFrame:\n\n        >>> df = pd.DataFrame(\n        ...    np.random.randn(10, 20),\n        ...    columns=('col %d' % i for i in range(20)))\n        ...\n        >>> st.dataframe(df.style.highlight_max(axis=0))\n\n        .. output::\n           https://share.streamlit.io/0.29.0-dV1Y/index.html?id=Hb6UymSNuZDzojUNybzPby\n           height: 285px\n\n        "
    import streamlit.elements.data_frame_proto as data_frame_proto

    def set_data_frame(delta):
        data_frame_proto.marshall_data_frame(data, delta.data_frame)
    return self._enqueue_new_element_delta(set_data_frame, 'dataframe', element_width=width, element_height=height)