Skip to content

Working PR for monitoring changes to main #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 14 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
203 changes: 119 additions & 84 deletions Cargo.lock

Large diffs are not rendered by default.

12 changes: 7 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,18 +37,20 @@ substrait = ["dep:datafusion-substrait"]
tokio = { version = "1.45", features = ["macros", "rt", "rt-multi-thread", "sync"] }
pyo3 = { version = "0.24", features = ["extension-module", "abi3", "abi3-py39"] }
pyo3-async-runtimes = { version = "0.24", features = ["tokio-runtime"]}
arrow = { version = "55.0.0", features = ["pyarrow"] }
datafusion = { version = "47.0.0", features = ["avro", "unicode_expressions"] }
datafusion-substrait = { version = "47.0.0", optional = true }
datafusion-proto = { version = "47.0.0" }
datafusion-ffi = { version = "47.0.0" }
pyo3-log = "0.12.4"
arrow = { version = "55.1.0", features = ["pyarrow"] }
datafusion = { version = "48.0.0", features = ["avro", "unicode_expressions"] }
datafusion-substrait = { version = "48.0.0", optional = true }
datafusion-proto = { version = "48.0.0" }
datafusion-ffi = { version = "48.0.0" }
prost = "0.13.1" # keep in line with `datafusion-substrait`
uuid = { version = "1.16", features = ["v4"] }
mimalloc = { version = "0.1", optional = true, default-features = false, features = ["local_dynamic_tls"] }
async-trait = "0.1.88"
futures = "0.3"
object_store = { version = "0.12.1", features = ["aws", "gcp", "azure", "http"] }
url = "2"
log = "0.4.27"

[build-dependencies]
prost-types = "0.13.1" # keep in line with `datafusion-substrait`
Expand Down
12 changes: 6 additions & 6 deletions docs/source/api/dataframe.rst
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ HTML Rendering Customization
----------------------------

DataFusion provides extensive customization options for HTML table rendering through the
``datafusion.html_formatter`` module.
``datafusion.dataframe_formatter`` module.

Configuring the HTML Formatter
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Expand All @@ -183,7 +183,7 @@ You can customize how DataFrames are rendered by configuring the formatter:

.. code-block:: python

from datafusion.html_formatter import configure_formatter
from datafusion.dataframe_formatter import configure_formatter

configure_formatter(
max_cell_length=30, # Maximum length of cell content before truncation
Expand All @@ -206,7 +206,7 @@ For advanced styling needs, you can create a custom style provider class:

.. code-block:: python

from datafusion.html_formatter import configure_formatter
from datafusion.dataframe_formatter import configure_formatter

class CustomStyleProvider:
def get_cell_style(self) -> str:
Expand All @@ -225,7 +225,7 @@ You can register custom formatters for specific data types:

.. code-block:: python

from datafusion.html_formatter import get_formatter
from datafusion.dataframe_formatter import get_formatter

formatter = get_formatter()

Expand Down Expand Up @@ -285,7 +285,7 @@ The HTML formatter maintains global state that can be managed:

.. code-block:: python

from datafusion.html_formatter import reset_formatter, reset_styles_loaded_state, get_formatter
from datafusion.dataframe_formatter import reset_formatter, reset_styles_loaded_state, get_formatter

# Reset the formatter to default settings
reset_formatter()
Expand All @@ -303,7 +303,7 @@ This example shows how to create a dashboard-like styling for your DataFrames:

.. code-block:: python

from datafusion.html_formatter import configure_formatter, get_formatter
from datafusion.dataframe_formatter import configure_formatter, get_formatter

# Define custom CSS
custom_css = """
Expand Down
2 changes: 1 addition & 1 deletion docs/source/contributor-guide/ffi.rst
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ By convention the ``datafusion-python`` library expects a Python object that has
``TableProvider`` PyCapsule to have this capsule accessible by calling a function named
``__datafusion_table_provider__``. You can see a complete working example of how to
share a ``TableProvider`` from one python library to DataFusion Python in the
`repository examples folder <https://github.com/apache/datafusion-python/tree/main/examples/ffi-table-provider>`_.
`repository examples folder <https://github.com/apache/datafusion-python/tree/main/examples/datafusion-ffi-example>`_.

This section has been written using ``TableProvider`` as an example. It is the first
extension that has been written using this approach and the most thoroughly implemented.
Expand Down
Loading
Loading