-
Notifications
You must be signed in to change notification settings - Fork 132
/
data_explorer.md
32 lines (25 loc) · 1.04 KB
/
data_explorer.md
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Data Explorer
The data explorer UI element outputs a visual editor explore your data via plotting and intelligent recommendations. You can incrementally build your "main" plot by adding different encodings: x-axis, y-axis, color, size, and shape. As you build your plot, the UI element will suggest further plots by intelligently "exploding" an additional encoding derived from your base plot.
```{admonition} Pandas Required
:class: note
In order to use the dataframe UI element, you must have the `pandas` package installed.
You can install it with `pip install pandas`.
```
```{eval-rst}
.. marimo-embed::
:size: large
:app_width: full
@app.cell
def __():
import pandas as pd
import pyodide
csv = pyodide.http.open_url("https://raw.githubusercontent.com/mwaskom/seaborn-data/master/iris.csv")
df = pd.read_csv(csv)
mo.ui.data_explorer(df)
return
```
```{eval-rst}
.. autoclass:: marimo.ui.data_explorer
:members:
.. autoclasstoc:: marimo._plugins.ui._impl.data_explorer.data_explorer
```