Commit 7d8bcd8
Partial fix for 1078: Enhance DataFrame Formatter Configuration with Memory and Display Controls (#1119)
* feat: add configurable max table bytes and min table rows for DataFrame display
* Revert "feat: add configurable max table bytes and min table rows for DataFrame display"
This reverts commit f9b78fa.
* feat: add FormatterConfig for configurable DataFrame display options
* refactor: simplify attribute extraction in get_formatter_config function
* refactor: remove hardcoded constants and use FormatterConfig for display options
* refactor: simplify record batch collection by using FormatterConfig for display options
* feat: add max_memory_bytes, min_rows_display, and repr_rows parameters to DataFrameHtmlFormatter
* feat: add tests for HTML formatter row display settings and memory limit
* refactor: extract Python formatter retrieval into a separate function
* Revert "feat: add tests for HTML formatter row display settings and memory limit"
This reverts commit e089d7b.
* feat: add tests for HTML formatter row and memory limit configurations
* Revert "feat: add tests for HTML formatter row and memory limit configurations"
This reverts commit 4090fd2.
* feat: add tests for new parameters and validation in DataFrameHtmlFormatter
* Reorganize tests
* refactor: rename and restructure formatter functions for clarity and maintainability
* feat: implement PythonFormatter struct and refactor formatter retrieval for improved clarity
* refactor: improve comments and restructure FormatterConfig usage in PyDataFrame
* Add DataFrame usage guide with HTML rendering customization options (#1108)
* docs: enhance user guide with detailed DataFrame operations and examples
* move /docs/source/api/dataframe.rst into user-guide
* docs: remove DataFrame API documentation
* docs: fix formatting inconsistencies in DataFrame user guide
* Two minor corrections to documentation rendering
---------
Co-authored-by: Tim Saucer <[email protected]>
* Update documentation
* refactor: streamline HTML rendering documentation
* refactor: extract validation logic into separate functions for clarity
* Implement feature X to enhance user experience and optimize performance
* feat: add validation method for FormatterConfig to ensure positive integer values
* add comment - ensure minimum rows are collected even if memory or row limits are hit
* Update html_formatter documentation
* update tests
* remove unused type hints from imports in html_formatter.py
* remove redundant tests for DataFrameHtmlFormatter and clean up assertions
* refactor get_attr function to support generic default values
* build_formatter_config_from_python return PyResult
* fix ruff errors
* trigger ci
* fix: remove redundant newline in test_custom_style_provider_html_formatter
* add more tests
* trigger ci
* Fix ruff errors
* fix clippy error
* feat: add validation for parameters in configure_formatter
* test: add tests for invalid parameters in configure_formatter
* Fix ruff errors
---------
Co-authored-by: Tim Saucer <[email protected]>1 parent 15b96c4 commit 7d8bcd8
File tree
4 files changed
+413
-68
lines changed- docs/source/user-guide
- python
- datafusion
- tests
- src
4 files changed
+413
-68
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
85 | 89 | | |
86 | 90 | | |
87 | 91 | | |
| |||
113 | 117 | | |
114 | 118 | | |
115 | 119 | | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
116 | 139 | | |
117 | 140 | | |
118 | 141 | | |
| |||
177 | 200 | | |
178 | 201 | | |
179 | 202 | | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
30 | 60 | | |
31 | 61 | | |
32 | 62 | | |
| |||
91 | 121 | | |
92 | 122 | | |
93 | 123 | | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
94 | 127 | | |
95 | 128 | | |
96 | 129 | | |
| |||
108 | 141 | | |
109 | 142 | | |
110 | 143 | | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
111 | 147 | | |
112 | 148 | | |
113 | 149 | | |
| |||
124 | 160 | | |
125 | 161 | | |
126 | 162 | | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
127 | 169 | | |
128 | 170 | | |
129 | 171 | | |
| |||
139 | 181 | | |
140 | 182 | | |
141 | 183 | | |
142 | | - | |
| 184 | + | |
| 185 | + | |
143 | 186 | | |
144 | 187 | | |
145 | 188 | | |
| |||
148 | 191 | | |
149 | 192 | | |
150 | 193 | | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
161 | 200 | | |
162 | 201 | | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
172 | 205 | | |
173 | 206 | | |
174 | 207 | | |
| |||
183 | 216 | | |
184 | 217 | | |
185 | 218 | | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
186 | 222 | | |
187 | 223 | | |
188 | 224 | | |
| |||
597 | 633 | | |
598 | 634 | | |
599 | 635 | | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
600 | 639 | | |
601 | 640 | | |
602 | 641 | | |
| |||
606 | 645 | | |
607 | 646 | | |
608 | 647 | | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
609 | 673 | | |
610 | 674 | | |
611 | 675 | | |
| |||
0 commit comments