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
+47-76Lines changed: 47 additions & 76 deletions
Original file line number
Diff line number
Diff line change
@@ -19,17 +19,30 @@
19
19
20
20
# DataFrame API
21
21
22
-
A DataFrame represents a logical set of rows with the same named columns, similar to a [Pandas DataFrame](https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.html) or
| aggregate | Perform an aggregate query with optional grouping expressions. |
66
-
| distinct | Filter out duplicate rows. |
67
-
| distinct_on | Filter out duplicate rows based on provided expressions. |
68
-
| drop_columns | Create a projection with all but the provided column names. |
69
-
| except | Calculate the exception of two DataFrames. The two DataFrames must have exactly the same schema |
70
-
| filter | Filter a DataFrame to only include rows that match the specified filter expression. |
71
-
| intersect | Calculate the intersection of two DataFrames. The two DataFrames must have exactly the same schema |
72
-
| join | Join this DataFrame with another DataFrame using the specified columns as join keys. |
73
-
| join_on | Join this DataFrame with another DataFrame using arbitrary expressions. |
74
-
| limit | Limit the number of rows returned from this DataFrame. |
75
-
| repartition | Repartition a DataFrame based on a logical partitioning scheme. |
76
-
| sort | Sort the DataFrame by the specified sorting expressions. Any expression can be turned into a sort expression by calling its `sort` method. |
77
-
| select | Create a projection based on arbitrary expressions. Example: `df.select(vec![col("c1"), abs(col("c2"))])?`|
78
-
| select_columns | Create a projection based on column names. Example: `df.select_columns(&["id", "name"])?`. |
79
-
| union | Calculate the union of two DataFrames, preserving duplicate rows. The two DataFrames must have exactly the same schema. |
80
-
| union_distinct | Calculate the distinct union of two DataFrames. The two DataFrames must have exactly the same schema. |
81
-
| with_column | Add an additional column to the DataFrame. |
82
-
| with_column_renamed | Rename one column by applying a new projection. |
83
-
84
-
## DataFrame Actions
85
-
86
-
These methods execute the logical plan represented by the DataFrame and either collects the results into memory, prints them to stdout, or writes them to disk.
| explain | Return a DataFrame with the explanation of its plan so far. |
107
-
| registry | Return a `FunctionRegistry` used to plan udf's calls. |
108
-
| 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. |
109
-
| to_logical_plan | Return the optimized logical plan represented by this DataFrame. |
110
-
| to_unoptimized_plan | Return the unoptimized logical plan represented by this DataFrame. |
0 commit comments