Skip to content

Commit

Permalink
Update example in the DataFrame documentation. (#7650)
Browse files Browse the repository at this point in the history
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`.
  • Loading branch information
jsimpson-gro authored Sep 25, 2023
1 parent 3505b7f commit 44575a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/source/user-guide/dataframe.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down

0 comments on commit 44575a8

Please sign in to comment.