Skip to content

Commit

Permalink
fix python reference (#1863)
Browse files Browse the repository at this point in the history
  • Loading branch information
ritchie46 committed Nov 22, 2021
1 parent 446debf commit 62669f8
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 10 deletions.
4 changes: 2 additions & 2 deletions py-polars/docs/source/reference/dataframe.rst
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ GroupBy
-------
This namespace comes available by calling `DataFrame.groupby(..)`.

.. currentmodule:: polars.eager.frame
.. currentmodule:: polars.internals.frame

.. autosummary::
:toctree: api/
Expand Down Expand Up @@ -166,7 +166,7 @@ Pivot
-----
This namespace comes available by calling `DataFrame.groupby(..).pivot`

.. currentmodule:: polars.eager.frame
.. currentmodule:: polars.internals.frame

.. autosummary::
:toctree: api/
Expand Down
6 changes: 3 additions & 3 deletions py-polars/docs/source/reference/expression.rst
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ TimeSeries
----------
The following methods are available under the `expr.dt` attribute.

.. currentmodule:: polars.lazy.expr
.. currentmodule:: polars.internals.expr

.. autosummary::
:toctree: api/
Expand All @@ -248,7 +248,7 @@ Strings

The following methods are available under the `Expr.str` attribute.

.. currentmodule:: polars.lazy.expr
.. currentmodule:: polars.internals.expr

.. autosummary::
:toctree: api/
Expand All @@ -268,7 +268,7 @@ Lists
-----
The following methods are available under the `expr.arr` attribute.

.. currentmodule:: polars.lazy.expr
.. currentmodule:: polars.internals.expr

.. autosummary::
:toctree: api/
Expand Down
2 changes: 1 addition & 1 deletion py-polars/docs/source/reference/lazyframe.rst
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ GroupBy
-------
This namespace comes available by calling `LazyFrame.groupby(..)`.

.. currentmodule:: polars.lazy.frame
.. currentmodule:: polars.internals.lazy_frame

.. autosummary::
:toctree: api/
Expand Down
6 changes: 3 additions & 3 deletions py-polars/docs/source/reference/series.rst
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ TimeSeries
----------
The following methods are available under the `Series.dt` attribute.

.. currentmodule:: polars.eager.series
.. currentmodule:: polars.internals.series

.. autosummary::
:toctree: api/
Expand Down Expand Up @@ -203,7 +203,7 @@ Strings

The following methods are available under the `Series.str` attribute.

.. currentmodule:: polars.eager.series
.. currentmodule:: polars.internals.series

.. autosummary::
:toctree: api/
Expand All @@ -226,7 +226,7 @@ Lists

The following methods are available under the `Series.arr` attribute.

.. currentmodule:: polars.eager.series
.. currentmodule:: polars.internals.series

.. autosummary::
:toctree: api/
Expand Down
5 changes: 4 additions & 1 deletion py-polars/polars/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ def version() -> str:
# this is only useful for documentation
warnings.warn("polars binary missing!")

from polars.cfg import Config # flake8: noqa. We do not export in __all__
from polars.cfg import ( # flake8: noqa. We do not export in __all__
Config,
toggle_string_cache,
)
from polars.convert import from_arrow, from_dict, from_dicts, from_pandas, from_records
from polars.datatypes import (
Boolean,
Expand Down

0 comments on commit 62669f8

Please sign in to comment.