Skip to content

Commit

Permalink
Improve constructor module structure
Browse files Browse the repository at this point in the history
  • Loading branch information
stinodego committed Mar 12, 2024
1 parent e88980c commit 21d6bf3
Show file tree
Hide file tree
Showing 8 changed files with 1,276 additions and 1,160 deletions.
48 changes: 48 additions & 0 deletions py-polars/polars/_utils/construction/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
from polars._utils.construction.dataframe import (
arrow_to_pydf,
dataframe_to_pydf,
dict_to_pydf,
iterable_to_pydf,
numpy_to_pydf,
pandas_to_pydf,
sequence_to_pydf,
series_to_pydf,
)
from polars._utils.construction.other import (
coerce_arrow,
numpy_to_idxs,
pandas_series_to_arrow,
)
from polars._utils.construction.series import (
arrow_to_pyseries,
dataframe_to_pyseries,
iterable_to_pyseries,
numpy_to_pyseries,
pandas_to_pyseries,
sequence_to_pyseries,
series_to_pyseries,
)

__all__ = [
# dataframe
"arrow_to_pydf",
"dataframe_to_pydf",
"dict_to_pydf",
"iterable_to_pydf",
"numpy_to_pydf",
"pandas_to_pydf",
"sequence_to_pydf",
"series_to_pydf",
# series
"arrow_to_pyseries",
"dataframe_to_pyseries",
"iterable_to_pyseries",
"numpy_to_pyseries",
"pandas_to_pyseries",
"sequence_to_pyseries",
"series_to_pyseries",
# other
"coerce_arrow",
"numpy_to_idxs",
"pandas_series_to_arrow",
]
Loading

0 comments on commit 21d6bf3

Please sign in to comment.