@@ -87,9 +87,7 @@ def _with_window(self, to_compliant_expr: Callable[[Any], Any]) -> Self:
8787 def _with_filtration (self , to_compliant_expr : Callable [[Any ], Any ]) -> Self :
8888 return self .__class__ (to_compliant_expr , self ._metadata .with_filtration ())
8989
90- def _with_orderable_filtration (
91- self , to_compliant_expr : Callable [[Any ], Any ]
92- ) -> Self :
90+ def _with_orderable_filtration (self , to_compliant_expr : Callable [[Any ], Any ]) -> Self :
9391 return self .__class__ (
9492 to_compliant_expr , self ._metadata .with_orderable_filtration ()
9593 )
@@ -823,9 +821,7 @@ def kurtosis(self) -> Self:
823821 | 0 -1.3 0.210657 |
824822 └──────────────────┘
825823 """
826- return self ._with_aggregation (
827- lambda plx : self ._to_compliant_expr (plx ).kurtosis ()
828- )
824+ return self ._with_aggregation (lambda plx : self ._to_compliant_expr (plx ).kurtosis ())
829825
830826 def sum (self ) -> Expr :
831827 """Return the sum value.
@@ -978,9 +974,7 @@ def n_unique(self) -> Self:
978974 | 0 5 3 |
979975 └──────────────────┘
980976 """
981- return self ._with_aggregation (
982- lambda plx : self ._to_compliant_expr (plx ).n_unique ()
983- )
977+ return self ._with_aggregation (lambda plx : self ._to_compliant_expr (plx ).n_unique ())
984978
985979 def unique (self ) -> Self :
986980 """Return unique values of this expression.
@@ -1203,9 +1197,7 @@ def replace_strict(
12031197 """
12041198 if new is None :
12051199 if not isinstance (old , Mapping ):
1206- msg = (
1207- "`new` argument is required if `old` argument is not a Mapping type"
1208- )
1200+ msg = "`new` argument is required if `old` argument is not a Mapping type"
12091201 raise TypeError (msg )
12101202
12111203 new = list (old .values ())
@@ -1425,9 +1417,7 @@ def is_null(self) -> Self:
14251417 |└───────┴────────┴───────────┴───────────┘|
14261418 └──────────────────────────────────────────┘
14271419 """
1428- return self ._with_elementwise (
1429- lambda plx : self ._to_compliant_expr (plx ).is_null ()
1430- )
1420+ return self ._with_elementwise (lambda plx : self ._to_compliant_expr (plx ).is_null ())
14311421
14321422 def is_nan (self ) -> Self :
14331423 """Indicate which values are NaN.
@@ -1481,9 +1471,7 @@ def arg_true(self) -> Self:
14811471 "See https://narwhals-dev.github.io/narwhals/backcompat/ for more information.\n "
14821472 )
14831473 issue_deprecation_warning (msg , _version = "1.23.0" )
1484- return self ._with_filtration (
1485- lambda plx : self ._to_compliant_expr (plx ).arg_true ()
1486- )
1474+ return self ._with_filtration (lambda plx : self ._to_compliant_expr (plx ).arg_true ())
14871475
14881476 def fill_null (
14891477 self ,
@@ -2481,10 +2469,7 @@ def rolling_var(
24812469
24822470 return self ._with_orderable_window (
24832471 lambda plx : self ._to_compliant_expr (plx ).rolling_var (
2484- window_size = window_size ,
2485- min_samples = min_samples ,
2486- center = center ,
2487- ddof = ddof ,
2472+ window_size = window_size , min_samples = min_samples , center = center , ddof = ddof
24882473 )
24892474 )
24902475
@@ -2545,10 +2530,7 @@ def rolling_std(
25452530
25462531 return self ._with_orderable_window (
25472532 lambda plx : self ._to_compliant_expr (plx ).rolling_std (
2548- window_size = window_size ,
2549- min_samples = min_samples ,
2550- center = center ,
2551- ddof = ddof ,
2533+ window_size = window_size , min_samples = min_samples , center = center , ddof = ddof
25522534 )
25532535 )
25542536
0 commit comments