-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0dc3834
commit 90f4ae8
Showing
15 changed files
with
285 additions
and
150 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import pandas as pd | ||
import pyreball as pb | ||
|
||
df = pd.DataFrame( | ||
[[row * 20 + col for col in range(20)] for row in range(40)], | ||
columns=[f"col_{i}" for i in range(20)], | ||
) | ||
datatables_definition = { | ||
"paging": False, | ||
"scrollCollapse": True, | ||
"scrollY": "400px", | ||
"searching": False, | ||
"order": [(1, "desc")], | ||
} | ||
pb.print_table( | ||
df, | ||
caption="Larger table with custom config.", | ||
datatables_definition=datatables_definition, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import pandas as pd | ||
import pyreball as pb | ||
|
||
df = pd.DataFrame( | ||
[[row * 20 + col for col in range(20)] for row in range(40)], | ||
columns=[f"col_{i}" for i in range(20)], | ||
) | ||
pb.print_table( | ||
df, | ||
caption="Larger table with paging.", | ||
display_option="paging", | ||
paging_sizes=[5, 10, "All"], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import pandas as pd | ||
import pyreball as pb | ||
|
||
df = pd.DataFrame( | ||
[[row * 20 + col for col in range(20)] for row in range(40)], | ||
columns=[f"col_{i}" for i in range(20)], | ||
) | ||
pb.print_table( | ||
df, | ||
caption="Larger table with scrolling.", | ||
display_option="scrolling", | ||
scroll_y_height="500px", | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import pandas as pd | ||
import pyreball as pb | ||
|
||
df = pd.DataFrame( | ||
{ | ||
"name": ["Bob", "Carol", "Alice", "Dave"], | ||
"age": [23, 5, 22, 54], | ||
} | ||
) | ||
pb.print_table( | ||
df, | ||
caption="Table with a search box.", | ||
show_search_box=True, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import pandas as pd | ||
import pyreball as pb | ||
|
||
df = pd.DataFrame( | ||
{ | ||
"name": ["Bob", "Carol", "Alice", "Dave"], | ||
"age": [23, 5, 22, 54], | ||
} | ||
) | ||
pb.print_table( | ||
df, | ||
caption="Style set to 'compact'.", | ||
datatables_style="compact", | ||
) | ||
pb.print_table( | ||
df, | ||
caption="Style set to 'compact' and 'display'.", | ||
datatables_style=["compact", "display"], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.