Skip to content

Commit 94eb233

Browse files
committed
Update user document to use select instead of select_columns
1 parent 1ecb5c9 commit 94eb233

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/source/user-guide/common-operations/select-and-filter.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ DataFusion can work with several file types, to start simple we can use a subset
3333
3434
ctx = SessionContext()
3535
df = ctx.read_parquet("yellow_trip_data.parquet")
36-
df.select_columns("trip_distance", "passenger_count")
36+
df.select("trip_distance", "passenger_count")
3737
3838
For mathematical or logical operations use :py:func:`~datafusion.col` to select columns, and give meaningful names to the resulting
3939
operations using :py:func:`~datafusion.expr.Expr.alias`
@@ -48,7 +48,7 @@ operations using :py:func:`~datafusion.expr.Expr.alias`
4848

4949
Please be aware that all identifiers are effectively made lower-case in SQL, so if your file has capital letters
5050
(ex: Name) you must put your column name in double quotes or the selection won’t work. As an alternative for simple
51-
column selection use :py:func:`~datafusion.dataframe.DataFrame.select_columns` without double quotes
51+
column selection use :py:func:`~datafusion.dataframe.DataFrame.select` without double quotes
5252

5353
For selecting columns with capital letters use ``'"VendorID"'``
5454

0 commit comments

Comments
 (0)