-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #43 from pydiverse/api-doku
API documentation
- Loading branch information
Showing
38 changed files
with
11,165 additions
and
14,581 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{{ '.'.join(objname.split('.')[-2:]) }} | ||
{{ underline }} | ||
|
||
.. currentmodule:: {{ '.'.join(module.split('.')[:2]) }} | ||
|
||
.. autoaccessormethod:: {{ (module.split('.')[2:] + [objname]) | join('.') }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{{ name | escape | underline}} | ||
|
||
.. currentmodule:: {{ module }} | ||
|
||
.. auto{{ objtype }}:: {{ objname }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,17 @@ | ||
=== | ||
API | ||
=== | ||
|
||
Core | ||
---- | ||
|
||
.. automodule:: pydiverse.transform | ||
:members: | ||
:undoc-members: | ||
|
||
.. autodata:: pydiverse.transform.λ | ||
|
||
|
||
Builtin Verbs | ||
------------- | ||
|
||
.. automodule:: pydiverse.transform.core.verbs | ||
:members: | ||
:undoc-members: | ||
|
||
|
||
Operators | ||
--------- | ||
|
||
.. automodule:: pydiverse.transform.core.ops.aggregate | ||
:members: | ||
.. automodule:: pydiverse.transform.core.ops.logical | ||
:members: | ||
.. automodule:: pydiverse.transform.core.ops.numeric | ||
:members: | ||
.. automodule:: pydiverse.transform.core.ops.string | ||
:members: | ||
.. automodule:: pydiverse.transform.core.ops.window | ||
:members: | ||
|
||
|
||
Functions | ||
--------- | ||
|
||
.. automodule:: pydiverse.transform.core.functions | ||
:members: | ||
:undoc-members: | ||
.. toctree:: | ||
:maxdepth: 1 | ||
|
||
verbs | ||
operators/index | ||
targets | ||
|
||
Table Implementations | ||
--------------------- | ||
Table | ||
----- | ||
|
||
.. autoclass:: pydiverse.transform.eager.PandasTableImpl | ||
.. autoclass:: pydiverse.transform.lazy.SQLTableImpl | ||
.. currentmodule:: pydiverse.transform | ||
.. autoclass:: Table | ||
:noindex: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
=========== | ||
Aggregation | ||
=========== | ||
|
||
.. currentmodule:: pydiverse.transform.ColExpr | ||
.. autosummary:: | ||
:toctree: _generated/ | ||
:nosignatures: | ||
:template: autosummary/short_title.rst | ||
|
||
count | ||
all | ||
any | ||
max | ||
mean | ||
min | ||
sum |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
========== | ||
Arithmetic | ||
========== | ||
|
||
.. currentmodule:: pydiverse.transform.ColExpr | ||
.. autosummary:: | ||
:toctree: _generated/ | ||
:nosignatures: | ||
:template: autosummary/short_title.rst | ||
|
||
__add__ | ||
__floordiv__ | ||
__mul__ | ||
__neg__ | ||
__pos__ | ||
__sub__ | ||
__truediv__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
========== | ||
Comparison | ||
========== | ||
|
||
.. currentmodule:: pydiverse.transform.ColExpr | ||
.. autosummary:: | ||
:toctree: _generated/ | ||
:nosignatures: | ||
:template: autosummary/short_title.rst | ||
|
||
__eq__ | ||
__ge__ | ||
__gt__ | ||
__le__ | ||
__lt__ | ||
__ne__ | ||
is_inf | ||
is_nan | ||
is_not_inf | ||
is_not_nan | ||
is_not_null | ||
is_null |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
=================== | ||
Datetime / Duration | ||
=================== | ||
|
||
.. currentmodule:: pydiverse.transform.ColExpr | ||
.. autosummary:: | ||
:toctree: _generated/ | ||
:nosignatures: | ||
:template: autosummary/accessor_method.rst | ||
|
||
dt.day | ||
dt.day_of_week | ||
dt.day_of_year | ||
dt.hour | ||
dt.microsecond | ||
dt.millisecond | ||
dt.minute | ||
dt.month | ||
dt.second | ||
dt.year | ||
dur.days | ||
dur.hours | ||
dur.microseconds | ||
dur.milliseconds | ||
dur.minutes | ||
dur.seconds |
17 changes: 17 additions & 0 deletions
17
docs/source/reference/operators/horizontal_aggregation.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
====================== | ||
Horizontal Aggregation | ||
====================== | ||
|
||
.. currentmodule:: pydiverse.transform | ||
.. autosummary:: | ||
:toctree: _generated/ | ||
:nosignatures: | ||
:template: autosummary/short_title.rst | ||
|
||
coalesce | ||
count | ||
all | ||
any | ||
max | ||
min | ||
sum |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
================= | ||
Column Operations | ||
================= | ||
|
||
.. toctree:: | ||
:maxdepth: 1 | ||
:hidden: | ||
|
||
arithmetic | ||
logical | ||
comparison | ||
numerical | ||
string | ||
datetime | ||
aggregation | ||
window | ||
sorting_markers | ||
horizontal_aggregation | ||
|
||
|
||
.. currentmodule:: pydiverse.transform | ||
|
||
.. autoclass:: ColExpr | ||
:no-index: | ||
:members: dtype | ||
|
||
.. autosummary:: | ||
:toctree: _generated/ | ||
:template: autosummary/short_title.rst | ||
:nosignatures: | ||
|
||
lit | ||
when | ||
|
||
.. autosummary:: | ||
:toctree: _generated/ | ||
:template: autosummary/short_title.rst | ||
:nosignatures: | ||
|
||
ColExpr.cast | ||
ColExpr.map |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
======= | ||
Logical | ||
======= | ||
|
||
.. currentmodule:: pydiverse.transform.ColExpr | ||
.. autosummary:: | ||
:toctree: _generated/ | ||
:nosignatures: | ||
:template: autosummary/short_title.rst | ||
|
||
__and__ | ||
__invert__ | ||
__or__ | ||
__xor__ | ||
any | ||
all | ||
is_in | ||
is_not_null | ||
is_null | ||
fill_null | ||
map |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
========= | ||
Numerical | ||
========= | ||
|
||
.. currentmodule:: pydiverse.transform.ColExpr | ||
.. autosummary:: | ||
:toctree: _generated/ | ||
:nosignatures: | ||
:template: autosummary/short_title.rst | ||
|
||
__pow__ | ||
abs | ||
ceil | ||
exp | ||
floor | ||
is_inf | ||
is_nan | ||
is_not_inf | ||
is_not_nan | ||
log | ||
round |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
=============== | ||
Sorting Markers | ||
=============== | ||
|
||
.. currentmodule:: pydiverse.transform.ColExpr | ||
.. autosummary:: | ||
:toctree: _generated/ | ||
:nosignatures: | ||
:template: autosummary/short_title.rst | ||
|
||
ascending | ||
descending | ||
nulls_first | ||
nulls_last |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
====== | ||
String | ||
====== | ||
|
||
.. currentmodule:: pydiverse.transform.ColExpr | ||
.. autosummary:: | ||
:toctree: _generated/ | ||
:nosignatures: | ||
:template: autosummary/accessor_method.rst | ||
|
||
str.contains | ||
str.ends_with | ||
str.len | ||
str.lower | ||
str.replace_all | ||
str.slice | ||
str.starts_with | ||
str.strip | ||
str.to_date | ||
str.to_datetime | ||
str.upper |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
====== | ||
Window | ||
====== | ||
|
||
.. currentmodule:: pydiverse.transform.ColExpr | ||
.. autosummary:: | ||
:toctree: _generated/ | ||
:nosignatures: | ||
:template: autosummary/short_title.rst | ||
|
||
shift | ||
|
||
.. currentmodule:: pydiverse.transform | ||
.. autosummary:: | ||
:toctree: _generated/ | ||
:nosignatures: | ||
:template: autosummary/short_title.rst | ||
|
||
dense_rank | ||
rank | ||
row_number |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
========================= | ||
Backends / Export Targets | ||
========================= | ||
|
||
.. currentmodule:: pydiverse.transform | ||
.. autosummary:: | ||
:toctree: _generated/ | ||
:nosignatures: | ||
:template: autosummary/short_title.rst | ||
|
||
DuckDb | ||
Pandas | ||
Polars | ||
SqlAlchemy |
Oops, something went wrong.