Skip to content

Commit aaf7723

Browse files
committed
Use an example df with no images
Remove unnecessary dom arguments
1 parent 8c2e9d5 commit aaf7723

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

docs/advanced_parameters.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ import pandas as pd
3333
from itables.sample_dfs import get_countries
3434
3535
df_small = pd.DataFrame({"a": [2, 1]})
36-
df = get_countries()
36+
df = get_countries(html=False)
3737
```
3838

3939
## Position and width
@@ -127,7 +127,7 @@ You can select which elements are actually displayed using
127127
DataTables' [`dom` option](https://datatables.net/reference/option/dom) with e.g.:
128128

129129
```{code-cell}
130-
show(df_small, dom="tpr")
130+
show(df_small, dom="ti")
131131
```
132132

133133
The available elements are:
@@ -288,18 +288,14 @@ from itables.sample_dfs import get_dict_of_test_dfs
288288
289289
for name, test_df in get_dict_of_test_dfs().items():
290290
if "sorted" in name:
291-
show(
292-
test_df,
293-
tags=f"<caption>{name}</caption>".replace("_", " ").title(),
294-
dom="tpr",
295-
)
291+
show(test_df, tags=f"<caption>{name}</caption>".replace("_", " ").title())
296292
```
297293

298294
You can also set an explicit [`order`](https://datatables.net/reference/option/order) argument:
299295

300296
```{code-cell}
301297
sorted_df = pd.DataFrame({"i": [1, 2], "a": [2, 1]}).set_index(["i"])
302-
show(sorted_df, order=[[1, "asc"]], dom="tpr")
298+
show(sorted_df, order=[[1, "asc"]])
303299
```
304300

305301
## Showing the index

0 commit comments

Comments
 (0)