Spaces:
Build error
Build error
File size: 1,114 Bytes
64772a4 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 |
from ..data import (
MaxRowsError,
curry,
default_data_transformer,
limit_rows,
pipe,
sample,
to_csv,
to_json,
to_values,
DataTransformerRegistry,
)
from ...utils._vegafusion_data import vegafusion_data_transformer
from typing import Final
# ==============================================================================
# VegaLite 5 data transformers
# ==============================================================================
ENTRY_POINT_GROUP: Final = "altair.vegalite.v5.data_transformer"
data_transformers = DataTransformerRegistry(entry_point_group=ENTRY_POINT_GROUP)
data_transformers.register("default", default_data_transformer)
data_transformers.register("json", to_json)
data_transformers.register("csv", to_csv)
data_transformers.register("vegafusion", vegafusion_data_transformer)
data_transformers.enable("default")
__all__ = (
"MaxRowsError",
"curry",
"default_data_transformer",
"limit_rows",
"pipe",
"sample",
"to_csv",
"to_json",
"to_values",
"data_transformers",
"vegafusion_data_transformer",
)
|