quarto tabset

1 Syntax

::: {.panel-tabset}

## Tabset A
```python
import polars as pl
print('polars version:', pl.__version__)
```

## Tabset B 
```python
import pandas as pd
print('pandas version:', pd.__version__)
```

:::

2 Example

import polars as pl
import plotly.express as px

wide_df = pl.DataFrame(
    {
        "nation": ["South Korea", "China", "Canada"],
        "gold": [24, 10, 9],
        "silver": [13, 15, 12],
        "bronze": [9, 12, 12],
    }
)

fig = px.bar(
    wide_df,
    x="nation",
    y=["gold", "silver", "bronze"],
    title="Wide-Form Input"
)

fig.show()
import plotly.express as px

df = px.data.iris()

# Use directly Columns as argument. You can use tab completion for this!
fig = px.scatter(
    df,
    x=df.sepal_length,
    y=df.sepal_width,
    color=df.species,
    size=df.petal_length
)

fig.show()
Back to top