Skip to content

Commit 1b77551

Browse files
committed
unnest_column has been deprecated since DF42
1 parent 9d28c0b commit 1b77551

2 files changed

Lines changed: 0 additions & 23 deletions

File tree

crates/core/src/dataframe.rs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff 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,

python/datafusion/dataframe.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,6 @@
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-
3833
from datafusion._internal import DataFrame as DataFrameInternal
3934
from datafusion._internal import DataFrameWriteOptions as DataFrameWriteOptionsInternal
4035
from 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

0 commit comments

Comments
 (0)