@@ -259,13 +259,14 @@ def schema(self) -> Schema:
259259
260260 @_fwd_frame (polars .DataFrame .describe )
261261 def describe (self , percentiles : t .Union [t .Sequence [float ], float , None ] = (0.25 , 0.5 , 0.75 ), * ,
262- interpolation : RollingInterpolationMethod = 'nearest' ) -> polars .DataFrame :
262+ interpolation : QuantileMethod = 'nearest' ) -> polars .DataFrame :
263263 """
264264 Return summary statistics for `self`. See [`DataFrame.describe`][polars.DataFrame.describe] for more information.
265265
266266 Args:
267267 percentiles: List of percentiles/quantiles to include. Defaults to 25% (first quartile),
268268 50% (median), and 75% (third quartile).
269+ interpolation: Interpolation used when calculating percentiles. Defaults to 'nearest'.
269270
270271 Returns:
271272 A dataframe containing summary statistics (mean, std. deviation, percentiles, etc.) for each column.
@@ -502,7 +503,8 @@ def select_props(
502503 A [`HasAtoms`][atomlib.atoms.HasAtoms] filtered to contain the
503504 specified properties (as well as required columns).
504505 """
505- props = self ._get_frame ().lazy ().select (* exprs , ** named_exprs ).drop (_REQUIRED_COLUMNS , strict = False ).collect (_eager = True )
506+ props = self ._get_frame ().lazy ().select (* exprs , ** named_exprs ) \
507+ .drop (_REQUIRED_COLUMNS , strict = False ).collect (optimizations = polars .QueryOptFlags ._eager ())
506508 return self .with_atoms (
507509 Atoms (self ._get_frame ().select (_REQUIRED_COLUMNS ).hstack (props ), _unchecked = False )
508510 )
@@ -1096,7 +1098,7 @@ def _repr_pretty_(self, p: t.Any, cycle: bool) -> None:
10961098IntoExpr : TypeAlias = polars ._typing .IntoExpr
10971099UniqueKeepStrategy : TypeAlias = polars ._typing .UniqueKeepStrategy
10981100FillNullStrategy : TypeAlias = polars ._typing .FillNullStrategy
1099- RollingInterpolationMethod : TypeAlias = polars ._typing .RollingInterpolationMethod
1101+ QuantileMethod : TypeAlias = polars ._typing .QuantileMethod
11001102ConcatMethod : TypeAlias = t .Literal ['horizontal' , 'vertical' , 'diagonal' , 'inner' , 'align' ]
11011103
11021104IntoAtoms : TypeAlias = t .Union [t .Dict [str , t .Sequence [t .Any ]], t .Sequence [t .Any ], numpy .ndarray , polars .DataFrame , 'Atoms' ]
0 commit comments