@@ -174,7 +174,7 @@ HTML Rendering Customization
174
174
----------------------------
175
175
176
176
DataFusion provides extensive customization options for HTML table rendering through the
177
- ``datafusion.html_formatter `` module.
177
+ ``datafusion.dataframe_formatter `` module.
178
178
179
179
Configuring the HTML Formatter
180
180
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -183,7 +183,7 @@ You can customize how DataFrames are rendered by configuring the formatter:
183
183
184
184
.. code-block :: python
185
185
186
- from datafusion.html_formatter import configure_formatter
186
+ from datafusion.dataframe_formatter import configure_formatter
187
187
188
188
configure_formatter(
189
189
max_cell_length = 30 , # Maximum length of cell content before truncation
@@ -206,7 +206,7 @@ For advanced styling needs, you can create a custom style provider class:
206
206
207
207
.. code-block :: python
208
208
209
- from datafusion.html_formatter import configure_formatter
209
+ from datafusion.dataframe_formatter import configure_formatter
210
210
211
211
class CustomStyleProvider :
212
212
def get_cell_style (self ) -> str :
@@ -225,7 +225,7 @@ You can register custom formatters for specific data types:
225
225
226
226
.. code-block :: python
227
227
228
- from datafusion.html_formatter import get_formatter
228
+ from datafusion.dataframe_formatter import get_formatter
229
229
230
230
formatter = get_formatter()
231
231
@@ -285,7 +285,7 @@ The HTML formatter maintains global state that can be managed:
285
285
286
286
.. code-block :: python
287
287
288
- from datafusion.html_formatter import reset_formatter, reset_styles_loaded_state, get_formatter
288
+ from datafusion.dataframe_formatter import reset_formatter, reset_styles_loaded_state, get_formatter
289
289
290
290
# Reset the formatter to default settings
291
291
reset_formatter()
@@ -303,7 +303,7 @@ This example shows how to create a dashboard-like styling for your DataFrames:
303
303
304
304
.. code-block :: python
305
305
306
- from datafusion.html_formatter import configure_formatter, get_formatter
306
+ from datafusion.dataframe_formatter import configure_formatter, get_formatter
307
307
308
308
# Define custom CSS
309
309
custom_css = """
0 commit comments