---
jupytext:
  formats: docs///md:myst,docs/py///py:percent
  notebook_metadata_filter: -jupytext.text_representation.jupytext_version
  text_representation:
    extension: .md
    format_name: myst
    format_version: 0.13
kernelspec:
  display_name: python3
  language: python
  name: python3
---

```{code-cell} ipython3
:tags: [remove-cell]

# pyright: reportUnusedExpression=false
```

# Markdown preview - Polars dataframes

`itables.to_markdown_table()` returns the Markdown table that `itables.show()`
prints when it can't display an interactive table at all - see
[Markdown preview](markdown_preview.md) for why, and when, this is
shown. This page shows it for each of our test [Polars](https://www.pola.rs/)
dataframes; see [Polars dataframes](../polars_dataframes.md) for the same
dataframes rendered as interactive tables.

```{code-cell} ipython3
import itables

dict_of_test_dfs = itables.sample_polars_dfs.get_dict_of_test_dfs()
```

## empty

```{code-cell} ipython3
print(itables.to_markdown_table(dict_of_test_dfs["empty"]))
```

## No rows

```{code-cell} ipython3
print(itables.to_markdown_table(dict_of_test_dfs["no_rows"]))
```

## bool

```{code-cell} ipython3
print(itables.to_markdown_table(dict_of_test_dfs["bool"]))
```

## Nullable boolean

```{code-cell} ipython3
print(itables.to_markdown_table(dict_of_test_dfs["nullable_boolean"]))
```

## int

```{code-cell} ipython3
print(itables.to_markdown_table(dict_of_test_dfs["int"]))
```

## Nullable integer

```{code-cell} ipython3
print(itables.to_markdown_table(dict_of_test_dfs["nullable_int"]))
```

## float

```{code-cell} ipython3
print(itables.to_markdown_table(dict_of_test_dfs["float"]))
```

## float_types

```{code-cell} ipython3
print(itables.to_markdown_table(dict_of_test_dfs["float_types"]))
```

## str

```{code-cell} ipython3
print(itables.to_markdown_table(dict_of_test_dfs["str"]))
```

## time

```{code-cell} ipython3
print(itables.to_markdown_table(dict_of_test_dfs["time"]))
```

## date_range

```{code-cell} ipython3
print(itables.to_markdown_table(dict_of_test_dfs["date_range"]))
```

## ordered_categories

```{code-cell} ipython3
print(itables.to_markdown_table(dict_of_test_dfs["ordered_categories"]))
```

## object

```{code-cell} ipython3
print(itables.to_markdown_table(dict_of_test_dfs["object"]))
```

## countries

```{code-cell} ipython3
print(itables.to_markdown_table(dict_of_test_dfs["countries"]))
```

## int_float_str

```{code-cell} ipython3
print(itables.to_markdown_table(dict_of_test_dfs["int_float_str"]))
```

## wide

```{code-cell} ipython3
print(itables.to_markdown_table(dict_of_test_dfs["wide"]))
```

## long_column_names

```{code-cell} ipython3
print(itables.to_markdown_table(dict_of_test_dfs["long_column_names"]))
```

## big_integers

```{code-cell} ipython3
print(itables.to_markdown_table(dict_of_test_dfs["big_integers"]))
```
