idmd.ui.data_preview.DataPreview

class idmd.ui.data_preview.DataPreview(position=0)[source]

Bases: Component

Component to display a preview of the dataset.

Initializes the component with a default position.

Args:

position (int): The column position of the component. Defaults to 0.

Methods

render

Renders the dataset preview in the Streamlit interface.

render()[source]

Renders the dataset preview in the Streamlit interface.

Displays the first few rows of the dataset if it exists in the session state.

Return type:

None