From 44575a87e34d30a61d68bfd0a414bdea2f9d6aa4 Mon Sep 17 00:00:00 2001 From: jsimpson-gro <120056396+jsimpson-gro@users.noreply.github.com> Date: Mon, 25 Sep 2023 13:23:01 -0700 Subject: [PATCH] Update example in the DataFrame documentation. (#7650) In the [documentation for DataFrame](https://arrow.apache.org/datafusion/user-guide/dataframe.html), a copy/paste of the example has a couple of compile errors. `.show` returns a `Future`, and the `Future` returns a `Result`. --- docs/source/user-guide/dataframe.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/user-guide/dataframe.md b/docs/source/user-guide/dataframe.md index 8ebf4cc678e1..4484b2c51019 100644 --- a/docs/source/user-guide/dataframe.md +++ b/docs/source/user-guide/dataframe.md @@ -44,7 +44,7 @@ let df = df.filter(col("a").lt_eq(col("b")))? .aggregate(vec![col("a")], vec![min(col("b"))])? .limit(0, Some(100))?; // Print results -df.show(); +df.show().await?; ``` The DataFrame API is well documented in the [API reference on docs.rs](https://docs.rs/datafusion/latest/datafusion/dataframe/struct.DataFrame.html).