Skip to content

Commit

Permalink
add df macro to prelude
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilyes authored and ritchie46 committed Nov 27, 2021
1 parent 37d3c54 commit 50494e9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 34 deletions.
34 changes: 0 additions & 34 deletions polars/polars-core/src/frame/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,6 @@ impl DataFrame {
/// # Example
///
/// ```
/// use polars_core::df;
/// use polars_core::prelude::*;
///
/// fn example() -> Result<()> {
Expand Down Expand Up @@ -311,7 +310,6 @@ impl DataFrame {
/// # Example
///
/// ```rust
/// use polars_core::df; // or "use polars::df"
/// use polars_core::prelude::*; // or "use polars::prelude::*"
///
/// fn example() -> Result<()> {
Expand All @@ -336,7 +334,6 @@ impl DataFrame {
/// # Example
///
/// ```rust
/// use polars_core::df; // or "use polars::df"
/// use polars_core::prelude::*; // or "use polars::prelude::*"
///
/// fn example() -> Result<()> {
Expand Down Expand Up @@ -382,7 +379,6 @@ impl DataFrame {
/// # Example
///
/// ```rust
/// use polars_core::df; // or "use polars::df"
/// use polars_core::prelude::*; // or "use polars::prelude::*"
///
/// fn example() -> Result<()> {
Expand All @@ -402,7 +398,6 @@ impl DataFrame {
/// # Example
///
/// ```rust
/// use polars_core::df; // or "use polars::df"
/// use polars_core::prelude::*; // or "use polars::prelude::*"
///
/// fn example() -> Result<()> {
Expand Down Expand Up @@ -436,7 +431,6 @@ impl DataFrame {
/// # Example
///
/// ```rust
/// use polars_core::df; // or "use polars::df"
/// use polars_core::prelude::*; // or "use polars::prelude::*"
///
/// fn example() -> Result<()> {
Expand Down Expand Up @@ -474,7 +468,6 @@ impl DataFrame {
/// # Example
///
/// ```rust
/// use polars_core::df; // or "use polars::df"
/// use polars_core::prelude::*; // or "use polars::prelude::*"
///
/// fn example() -> Result<()> {
Expand All @@ -501,7 +494,6 @@ impl DataFrame {
/// # Example
///
/// ```rust
/// use polars_core::df; // or "use polars::df"
/// use polars_core::prelude::*; // or "use polars::prelude::*"
///
/// fn example() -> Result<()> {
Expand Down Expand Up @@ -529,7 +521,6 @@ impl DataFrame {
/// # Example
///
/// ```rust
/// use polars_core::df; // or "use polars::df"
/// use polars_core::prelude::*; // or "use polars::prelude::*"
///
/// fn example() -> Result<()> {
Expand All @@ -554,7 +545,6 @@ impl DataFrame {
/// # Example
///
/// ```rust
/// use polars_core::df; // or "use polars::df"
/// use polars_core::prelude::*; // or "use polars::prelude::*"
///
/// fn example() -> Result<()> {
Expand All @@ -578,7 +568,6 @@ impl DataFrame {
/// # Example
///
/// ```rust
/// use polars_core::df; // or "use polars::df"
/// use polars_core::prelude::*; // or "use polars::prelude::*"
///
/// fn example() -> Result<()> {
Expand Down Expand Up @@ -647,7 +636,6 @@ impl DataFrame {
/// # Example
///
/// ```rust
/// use polars_core::df; // or "use polars::df"
/// use polars_core::prelude::*; // or "use polars::prelude::*"
///
/// fn example() -> Result<()> {
Expand Down Expand Up @@ -690,7 +678,6 @@ impl DataFrame {
/// # Example
///
/// ```rust
/// use polars_core::df; // or "use polars::df"
/// use polars_core::prelude::*; // or "use polars::prelude::*"
///
/// fn example() -> Result<()> {
Expand Down Expand Up @@ -738,7 +725,6 @@ impl DataFrame {
/// # Example
///
/// ```rust
/// use polars_core::df; // or "use polars::df"
/// use polars_core::prelude::*; // or "use polars::prelude::*"
///
/// fn example() -> Result<()> {
Expand Down Expand Up @@ -808,7 +794,6 @@ impl DataFrame {
/// # Example
///
/// ```rust
/// use polars_core::df; // or "use polars::df"
/// use polars_core::prelude::*; // or "use polars::prelude::*"
///
/// fn example() -> Result<()> {
Expand Down Expand Up @@ -836,7 +821,6 @@ impl DataFrame {
/// # Example
///
/// ```rust
/// use polars_core::df; // or "use polars::df"
/// use polars_core::prelude::*; // or "use polars::prelude::*"
///
/// fn example() -> Result<()> {
Expand Down Expand Up @@ -898,7 +882,6 @@ impl DataFrame {
/// # Example
///
/// ```rust
/// use polars_core::df; // or "use polars::df"
/// use polars_core::prelude::*; // or "use polars::prelude::*"
///
/// fn example() -> Result<()> {
Expand Down Expand Up @@ -998,7 +981,6 @@ impl DataFrame {
/// # Example
///
/// ```rust
/// use polars_core::df; // or "use polars::df"
/// use polars_core::prelude::*; // or "use polars::prelude::*"
///
/// fn example() -> Result<()> {
Expand Down Expand Up @@ -1029,7 +1011,6 @@ impl DataFrame {
/// # Example
///
/// ```rust
/// use polars_core::df; // or "use polars::df"
/// use polars_core::prelude::*; // or "use polars::prelude::*"
///
/// fn example() -> Result<()> {
Expand Down Expand Up @@ -1080,7 +1061,6 @@ impl DataFrame {
/// # Example
///
/// ```rust
/// use polars_core::df; // or "use polars::df"
/// use polars_core::prelude::*; // or "use polars::prelude::*"
///
/// fn example() -> Result<()> {
Expand Down Expand Up @@ -1143,7 +1123,6 @@ impl DataFrame {
/// # Example
///
/// ```rust
/// use polars_core::df; // or "use polars::df"
/// use polars_core::prelude::*; // or "use polars::prelude::*"
///
/// fn example() -> Result<()> {
Expand Down Expand Up @@ -1549,7 +1528,6 @@ impl DataFrame {
/// # Example
///
/// ```rust
/// use polars_core::df; // or "use polars::df"
/// use polars_core::prelude::*; // or "use polars::prelude::*"
///
/// fn example() -> Result<()> {
Expand Down Expand Up @@ -1862,7 +1840,6 @@ impl DataFrame {
/// # Example
///
/// ```rust
/// use polars_core::df; // or "use polars::df"
/// use polars_core::prelude::*; // or "use polars::prelude::*"
///
/// fn example() -> Result<()> {
Expand Down Expand Up @@ -1905,7 +1882,6 @@ impl DataFrame {
/// # Example
///
/// ```rust
/// use polars_core::df;
/// use polars_core::prelude::*;
///
/// fn example() -> Result<()> {
Expand Down Expand Up @@ -1952,7 +1928,6 @@ impl DataFrame {
/// # Example
///
/// ```rust
/// use polars_core::df;
/// use polars_core::prelude::*;
///
/// fn example() -> Result<()> {
Expand Down Expand Up @@ -2044,7 +2019,6 @@ impl DataFrame {
/// # Example
///
/// ```rust
/// use polars_core::df;
/// use polars_core::prelude::*;
///
/// fn example() -> Result<()> {
Expand Down Expand Up @@ -2082,7 +2056,6 @@ impl DataFrame {
/// # Example
///
/// ```rust
/// use polars_core::df;
/// use polars_core::prelude::*;
///
/// fn example() -> Result<()> {
Expand Down Expand Up @@ -2119,7 +2092,6 @@ impl DataFrame {
/// # Example
///
/// ```rust
/// use polars_core::df;
/// use polars_core::prelude::*;
///
/// fn example() -> Result<()> {
Expand Down Expand Up @@ -2157,7 +2129,6 @@ impl DataFrame {
/// # Example
///
/// ```rust
/// use polars_core::df;
/// use polars_core::prelude::*;
///
/// fn example() -> Result<()> {
Expand Down Expand Up @@ -2195,7 +2166,6 @@ impl DataFrame {
/// # Example
///
/// ```rust
/// use polars_core::df;
/// use polars_core::prelude::*;
///
/// fn example() -> Result<()> {
Expand Down Expand Up @@ -2233,7 +2203,6 @@ impl DataFrame {
/// # Example
///
/// ```rust
/// use polars_core::df;
/// use polars_core::prelude::*;
///
/// fn example() -> Result<()> {
Expand Down Expand Up @@ -2275,7 +2244,6 @@ impl DataFrame {
/// # Example
///
/// ```rust
/// use polars_core::df;
/// use polars_core::prelude::*;
///
/// fn example() -> Result<()> {
Expand Down Expand Up @@ -2570,7 +2538,6 @@ impl DataFrame {
/// # Example
///
/// ```rust
/// use polars_core::df; // or "use polars::df"
/// use polars_core::prelude::*; // or "use polars::prelude::*"
///
/// fn example() -> Result<()> {
Expand All @@ -2594,7 +2561,6 @@ impl DataFrame {
/// # Example
///
/// ```rust
/// use polars_core::df; // or "use polars::df"
/// use polars_core::prelude::*; // or "use polars::prelude::*"
///
/// fn example() -> Result<()> {
Expand Down
1 change: 1 addition & 0 deletions polars/polars-core/src/prelude.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ pub use crate::{
},
datatypes,
datatypes::*,
df,
error::{PolarsError, Result},
frame::{hash_join::JoinType, DataFrame},
series::{
Expand Down

0 comments on commit 50494e9

Please sign in to comment.