You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/source/user-guide/dataframe.md
+5-185Lines changed: 5 additions & 185 deletions
Original file line number
Diff line number
Diff line change
@@ -29,8 +29,6 @@ to build up a query definition.
29
29
30
30
The query can be executed by calling the `collect` method.
31
31
32
-
The API is well documented in the [API reference on docs.rs](https://docs.rs/datafusion/latest/datafusion/dataframe/struct.DataFrame.html)
33
-
34
32
The DataFrame struct is part of DataFusion's prelude and can be imported with the following statement.
35
33
36
34
```rust
@@ -49,6 +47,11 @@ let df = df.filter(col("a").lt_eq(col("b")))?
49
47
df.show();
50
48
```
51
49
50
+
The DataFrame API is well documented in the [API reference on docs.rs](https://docs.rs/datafusion/latest/datafusion/dataframe/struct.DataFrame.html).
51
+
52
+
Refer to the [Expressions Refence](expressions) for available functions for building logical expressions for use with the
53
+
DataFrame API.
54
+
52
55
## DataFrame Transformations
53
56
54
57
These methods create a new DataFrame after applying a transformation to the logical plan that the DataFrame represents.
@@ -99,186 +102,3 @@ These methods execute the logical plan represented by the DataFrame and either c
99
102
| registry | Return a `FunctionRegistry` used to plan udf's calls. |
100
103
| schema | Returns the schema describing the output of this DataFrame in terms of columns returned, where each column has a name, data type, and nullability attribute. |
101
104
| to_logical_plan | Return the logical plan represented by this DataFrame. |
102
-
103
-
# Expressions
104
-
105
-
DataFrame methods such as `select` and `filter` accept one or more logical expressions and there are many functions
106
-
available for creating logical expressions. These are documented below.
107
-
108
-
Expressions can be chained together using a fluent-style API:
| coalesce | Returns the first of its arguments that is not null. Null is returned only if all arguments are null. It is often used to substitute a default value for null values when data is retrieved for display. |
178
-
| case | CASE expression. Example: `case(expr).when(expr, expr).when(expr, expr).otherwise(expr).end()`. |
179
-
| nullif | Returns a null value if `value1` equals `value2`; otherwise it returns `value1`. This can be used to perform the inverse operation of the `coalesce` expression. |
0 commit comments