You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I figured I'd add some extra context on the dataframe settings when I
noticed that the dataframe docs were broken 🫨 !
https://github.com/user-attachments/assets/ed1c3b2d-20ad-427f-847b-15cc25406cc8
This PR fixes the issue, we were missing some closing `///` that would
hide whole portions of the docs as a result.
It also mentions a user setting that is relevant to this portion of the
docs.
---------
Co-authored-by: Myles Scolnick <[email protected]>
Copy file name to clipboardExpand all lines: docs/guides/working_with_data/dataframes.md
+28-5Lines changed: 28 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -320,6 +320,7 @@ dataframe_.
320
320
</figure>
321
321
</div>
322
322
323
+
323
324
/// tab | pandas
324
325
325
326
```python
@@ -339,6 +340,7 @@ table.value
339
340
340
341
///
341
342
343
+
342
344
/// tab | polars
343
345
344
346
```python
@@ -382,7 +384,10 @@ def __():
382
384
383
385
///
384
386
385
-
## Dataframe panels
387
+
///
388
+
389
+
390
+
## Dataframe panels {#dataframe-panels}
386
391
387
392
Dataframe outputs in marimo come with several panels to help you visualize, explore, and page through your data interactively. These panels are accessible via toggles at the bottom-left of a dataframe output. If you need further control, after opening a panel you can
388
393
@@ -393,7 +398,7 @@ Dataframe outputs in marimo come with several panels to help you visualize, expl
393
398
394
399
Toggles are visible when editing notebooks (with `marimo edit ...`) but not when running notebooks as apps (with `marimo run ...`), except for the row viewer which is available in both.
395
400
396
-
### Row viewer panel
401
+
### Row viewer panel {#row-viewer-panel}
397
402
398
403
<divalign="center">
399
404
<figure>
@@ -408,7 +413,7 @@ To inspect individual rows, open the **row viewer**. This presents a vertical vi
408
413
-**Use arrow keys** (`←``→`) to navigate between rows
409
414
-**Click** on any row in the dataframe to view its data in the panel
410
415
411
-
### Column explorer panel
416
+
### Column explorer panel {#column-explorer-panel}
412
417
413
418
<divalign="center">
414
419
<figure>
@@ -427,12 +432,30 @@ import altair
427
432
altair.data_transformers.enable("vegafusion")
428
433
```
429
434
430
-
### Chart builder
435
+
### Chart builder {#chart-builder}
431
436
432
437
The chart builder toggle lets you rapidly develop charts using a GUI, while also generating Python code to insert in your notebook. Refer to the [chart builder guide](plotting.md#chart-builder) for more details.
433
438
439
+
## Preferences {#preferences}
440
+
441
+
When you run a SQL cell in marimo, you can get the output returned as a dataframe. If you have a preference for a specific dataframe library as a default you can configure the "default SQL output" in the user settings by going to the "Runtime" tab.
<figcaption>Configure the default SQL output</figcaption>
448
+
</figure>
449
+
</div>
450
+
451
+
Alternatively you can also use the [marimo configuration file](/guides/configuration/#user-configuration) to configure the default SQL output.
452
+
453
+
```toml
454
+
[runtime]
455
+
default_sql_output = "native"
456
+
```
434
457
435
-
## Example notebook
458
+
## Example notebook {#example-notebook}
436
459
437
460
For a comprehensive example of using Polars with marimo, check out our [Polars example notebook](https://github.com/marimo-team/marimo/blob/main/examples/third_party/polars/polars_example.py).
0 commit comments