Displaying data frames
Contents
Displaying data frames¶
mk.gui.Gallery
¶
mk.gui.Gallery
is is view-only component that allows you to visualize your data frame in a gallery.
You can visualize your data along with your metadata for fast visual inspection.
Each example displayed in the gallery can be expanded as a modal by double clicking on the example. The modal displays the data and metadata for the example.
mk.gui.Table
¶
mk.gui.Table
is also a view-only component that displays the data frame as a table.
Example¶
Let’s look at an example where we can switch between the gallery and table views.
Code
import meerkat as mk
df = mk.get("imagenette", version="160px")
table = mk.gui.Table(df=df)
gallery = mk.gui.Gallery(df=df, main_column="img")
tabs = mk.gui.Tabs(tabs={"Table": table, "Gallery": gallery})
mk.gui.start(shareable=False)
mk.gui.Interface(component=mk.gui.RowLayout(components=[tabs])).launch()