File tree Expand file tree Collapse file tree 5 files changed +52
-26
lines changed
src/pydiverse/transform/_internal/pipe Expand file tree Collapse file tree 5 files changed +52
-26
lines changed Original file line number Diff line number Diff line change 7
7
8
8
verbs
9
9
operators/index
10
- functions
10
+ targets
11
11
12
12
Table
13
13
-----
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
- ================
2
- Column Operators
3
- ================
1
+ =================
2
+ Column Operations
3
+ =================
4
4
5
5
.. toctree ::
6
6
:maxdepth: 1
@@ -17,8 +17,25 @@ Column Operators
17
17
sorting_markers
18
18
horizontal_aggregation
19
19
20
+
20
21
.. currentmodule :: pydiverse.transform
21
22
22
23
.. autoclass :: ColExpr
23
- :noindex :
24
+ :no-index :
24
25
:members: dtype
26
+
27
+ .. autosummary ::
28
+ :toctree: _generated/
29
+ :template: autosummary/short_title.rst
30
+ :nosignatures:
31
+
32
+ lit
33
+ when
34
+
35
+ .. autosummary ::
36
+ :toctree: _generated/
37
+ :template: autosummary/short_title.rst
38
+ :nosignatures:
39
+
40
+ ColExpr.cast
41
+ ColExpr.map
Original file line number Diff line number Diff line change
1
+ =========================
2
+ Backends / Export Targets
3
+ =========================
4
+
5
+ .. currentmodule :: pydiverse.transform
6
+ .. autosummary ::
7
+ :toctree: _generated/
8
+ :nosignatures:
9
+ :template: autosummary/short_title.rst
10
+
11
+ DuckDb
12
+ Pandas
13
+ Polars
14
+ SqlAlchemy
Original file line number Diff line number Diff line change @@ -142,6 +142,22 @@ def export(
142
142
* ,
143
143
schema_overrides : dict [Col , Any ] | None = None ,
144
144
) -> Pipeable :
145
+ """Convert a pydiverse.transform Table to a data frame.
146
+
147
+ Parameters
148
+ ----------
149
+ The pydiverse.transform Table or column expression to be exported.
150
+
151
+ target
152
+ Can currently be either a `Polars` or `Pandas` object. For polars, one can
153
+ specify whether a DataFrame or LazyFrame is returned via the `lazy` kwarg.
154
+ If `lazy=True`, no actual computations are performed, they just get stored in
155
+ the LazyFrame.
156
+
157
+ Returns
158
+ -------
159
+ A polars or pandas DataFrame / LazyFrame or a series.
160
+ """
145
161
if isinstance (data , ColExpr ):
146
162
# Find the common ancestor of all AST nodes of columns appearing in the
147
163
# expression.
You can’t perform that action at this time.
0 commit comments