Skip to content

Commit e3d643b

Browse files
committed
Fix ruff errors
1 parent 0aebd74 commit e3d643b

File tree

2 files changed

+155
-152
lines changed

2 files changed

+155
-152
lines changed

python/datafusion/dataframe.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
except ImportError:
3838
from typing_extensions import deprecated # Python 3.12
3939

40-
from datafusion import functions as f
4140
from datafusion._internal import DataFrame as DataFrameInternal
4241
from datafusion.expr import Expr, SortExpr, sort_or_default
4342
from datafusion.plan import ExecutionPlan, LogicalPlan
@@ -56,8 +55,6 @@
5655

5756
from enum import Enum
5857

59-
from datafusion.expr import Expr, SortExpr, sort_or_default
60-
6158

6259
# excerpt from deltalake
6360
# https://github.com/apache/datafusion-python/pull/981#discussion_r1905619163
@@ -873,7 +870,7 @@ def within_limit(df: DataFrame, limit: int) -> DataFrame:
873870
"""
874871
return func(self, *args)
875872

876-
def fill_null(self, value: Any, subset: list[str] | None = None) -> "DataFrame":
873+
def fill_null(self, value: Any, subset: list[str] | None = None) -> DataFrame:
877874
"""Fill null values in specified columns with a value.
878875
879876
Args:
@@ -893,5 +890,4 @@ def fill_null(self, value: Any, subset: list[str] | None = None) -> "DataFrame":
893890
- For columns where casting fails, the original column is kept unchanged
894891
- For columns not in subset, the original column is kept unchanged
895892
"""
896-
897893
return DataFrame(self.df.fill_null(value, subset))

0 commit comments

Comments
 (0)