//! Conversion of tabular API responses into Polars `DataFrame`s.
//!
//! This module is only compiled when the `polars` cargo feature is enabled.
//!
//! # Usage
//!
//! ```rust,ignore
//! use trading_ig::dataframe::IntoDataFrame;
//!
//! let positions = client.dealing().positions().list_v2().await?;
//! let df = positions.to_dataframe()?;
//! println!("{df}");
//! ```
use *;
use crateResult;
/// Convert a tabular IG API response into a Polars `DataFrame`.
///
/// Implement this trait on collection types (e.g. `Vec<Account>`,
/// `HistoricalPrices`) to enable one-step conversion to a
/// Polars `DataFrame` for further analysis.