File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -868,19 +868,6 @@ impl PyDataFrame {
868868 Ok ( Self :: new ( new_df) )
869869 }
870870
871- #[ pyo3( signature = ( column, preserve_nulls=true ) ) ]
872- fn unnest_column ( & self , column : & str , preserve_nulls : bool ) -> PyDataFusionResult < Self > {
873- // TODO: expose RecursionUnnestOptions
874- // REF: https://github.com/apache/datafusion/pull/11577
875- let unnest_options = UnnestOptions :: default ( ) . with_preserve_nulls ( preserve_nulls) ;
876- let df = self
877- . df
878- . as_ref ( )
879- . clone ( )
880- . unnest_columns_with_options ( & [ column] , unnest_options) ?;
881- Ok ( Self :: new ( df) )
882- }
883-
884871 #[ pyo3( signature = ( columns, preserve_nulls=true ) ) ]
885872 fn unnest_columns (
886873 & self ,
Original file line number Diff line number Diff line change 3030 overload ,
3131)
3232
33- try :
34- from warnings import deprecated # Python 3.13+
35- except ImportError :
36- from typing_extensions import deprecated # Python 3.12
37-
3833from datafusion ._internal import DataFrame as DataFrameInternal
3934from datafusion ._internal import DataFrameWriteOptions as DataFrameWriteOptionsInternal
4035from datafusion ._internal import InsertOp as InsertOpInternal
@@ -1298,11 +1293,6 @@ def count(self) -> int:
12981293 """
12991294 return self .df .count ()
13001295
1301- @deprecated ("Use :py:func:`unnest_columns` instead." )
1302- def unnest_column (self , column : str , preserve_nulls : bool = True ) -> DataFrame :
1303- """See :py:func:`unnest_columns`."""
1304- return DataFrame (self .df .unnest_column (column , preserve_nulls = preserve_nulls ))
1305-
13061296 def unnest_columns (self , * columns : str , preserve_nulls : bool = True ) -> DataFrame :
13071297 """Expand columns of arrays into a single row per array element.
13081298
You can’t perform that action at this time.
0 commit comments