Skip to content

Commit 2f56fe1

Browse files
committed
ruff linting
1 parent 17862b5 commit 2f56fe1

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

python/datafusion/dataframe.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -404,11 +404,12 @@ def select_columns(self, *args: str) -> DataFrame:
404404
DataFrame only containing the specified columns.
405405
"""
406406
return self.select(*args)
407-
407+
408408
def select_exprs(self, *args: str) -> DataFrame:
409-
"""Project arbitrary list of expression strings into a new DataFrame.
410-
Method will parse string expressions into logical plan expressions.
411-
The output DataFrame has one column for each element in exprs.
409+
"""Project arbitrary list of expression strings into a new DataFrame.
410+
411+
This method will parse string expressions into logical plan expressions.
412+
The output DataFrame has one column for each expression.
412413
413414
Returns:
414415
DataFrame only containing the specified columns.

python/tests/test_dataframe.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,7 @@ def test_select_exprs(df):
252252
assert result.column(0) == pa.array([5, 7, 9])
253253
assert result.column(1) == pa.array([3, 3, 3])
254254

255+
255256
def test_drop_quoted_columns():
256257
ctx = SessionContext()
257258
batch = pa.RecordBatch.from_arrays([pa.array([1, 2, 3])], names=["ID_For_Students"])

0 commit comments

Comments
 (0)