MCPcopy Create free account
hub / github.com/apache/datafusion / distinct

Method distinct

datafusion/core/src/dataframe/mod.rs:927–934  ·  view source on GitHub ↗

Return a new `DataFrame` with all duplicated rows removed. # Example ``` # use datafusion::prelude::*; # use datafusion::error::Result; # use datafusion_common::assert_batches_sorted_eq; # #[tokio::main] # async fn main() -> Result<()> { let ctx = SessionContext::new(); let df = ctx .read_csv("tests/data/example.csv", CsvReadOptions::new()) .await?; let df = df.distinct()?; let expected = vec![ "

(self)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Calls 1

buildMethod · 0.45