File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
docs/source/user-guide/dataframe Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -142,21 +142,21 @@ For such methods, you can pass column names directly:
142142
143143.. code-block :: python
144144
145- from datafusion import col, column, functions as f
145+ from datafusion import col, functions as f
146146
147147 df.sort(' id' )
148148 df.aggregate(' id' , [f.count(col(' value' ))])
149149
150- The same operation can also be written with an explicit column expression :
150+ The same operation can also be written with explicit column expressions, using either `` col() `` or `` column() `` :
151151
152152.. code-block :: python
153153
154154 from datafusion import col, column, functions as f
155155
156156 df.sort(col(' id' ))
157- df.aggregate(col (' id' ), [f.count(col(' value' ))])
157+ df.aggregate(column (' id' ), [f.count(col(' value' ))])
158158
159- Note that ``column() `` is an alias of ``col() ``, so you can use either name.
159+ Note that ``column() `` is an alias of ``col() ``, so you can use either name; the example above shows both in action .
160160
161161Whenever an argument represents an expression—such as in
162162:py:meth: `~datafusion.DataFrame.filter ` or
You can’t perform that action at this time.
0 commit comments