pub trait ToDataFrame {
// Required methods
fn to_dataframe(&self) -> Result<DataFrame, PolarsError>;
fn empty_dataframe() -> Result<DataFrame, PolarsError>;
fn schema() -> Result<Vec<(String, DataType)>, PolarsError>;
}Required Methods§
Sourcefn to_dataframe(&self) -> Result<DataFrame, PolarsError>
fn to_dataframe(&self) -> Result<DataFrame, PolarsError>
§Errors
Returns an error if DataFrame construction fails.
Sourcefn empty_dataframe() -> Result<DataFrame, PolarsError>
fn empty_dataframe() -> Result<DataFrame, PolarsError>
§Errors
Returns an error if DataFrame construction fails.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementations on Foreign Types§
Source§impl ToDataFrame for ()
impl ToDataFrame for ()
fn to_dataframe(&self) -> Result<DataFrame, PolarsError>
fn empty_dataframe() -> Result<DataFrame, PolarsError>
fn schema() -> Result<Vec<(String, DataType)>, PolarsError>
Source§impl ToDataFrame for AnalysisSummary
impl ToDataFrame for AnalysisSummary
fn to_dataframe(&self) -> Result<DataFrame, PolarsError>
fn empty_dataframe() -> Result<DataFrame, PolarsError>
fn schema() -> Result<Vec<(String, DataType)>, PolarsError>
Source§impl ToDataFrame for EarningsEstimate
impl ToDataFrame for EarningsEstimate
fn to_dataframe(&self) -> Result<DataFrame, PolarsError>
fn empty_dataframe() -> Result<DataFrame, PolarsError>
fn schema() -> Result<Vec<(String, DataType)>, PolarsError>
Source§impl ToDataFrame for EpsRevisions
impl ToDataFrame for EpsRevisions
fn to_dataframe(&self) -> Result<DataFrame, PolarsError>
fn empty_dataframe() -> Result<DataFrame, PolarsError>
fn schema() -> Result<Vec<(String, DataType)>, PolarsError>
Source§impl ToDataFrame for EpsTrend
impl ToDataFrame for EpsTrend
fn to_dataframe(&self) -> Result<DataFrame, PolarsError>
fn empty_dataframe() -> Result<DataFrame, PolarsError>
fn schema() -> Result<Vec<(String, DataType)>, PolarsError>
Source§impl ToDataFrame for ExchangeRate
impl ToDataFrame for ExchangeRate
fn to_dataframe(&self) -> Result<DataFrame, PolarsError>
fn empty_dataframe() -> Result<DataFrame, PolarsError>
fn schema() -> Result<Vec<(String, DataType)>, PolarsError>
Source§impl ToDataFrame for RevenueEstimate
impl ToDataFrame for RevenueEstimate
fn to_dataframe(&self) -> Result<DataFrame, PolarsError>
fn empty_dataframe() -> Result<DataFrame, PolarsError>
fn schema() -> Result<Vec<(String, DataType)>, PolarsError>
Source§impl ToDataFrame for RevisionPoint
impl ToDataFrame for RevisionPoint
fn to_dataframe(&self) -> Result<DataFrame, PolarsError>
fn empty_dataframe() -> Result<DataFrame, PolarsError>
fn schema() -> Result<Vec<(String, DataType)>, PolarsError>
Source§impl ToDataFrame for TrendPoint
impl ToDataFrame for TrendPoint
fn to_dataframe(&self) -> Result<DataFrame, PolarsError>
fn empty_dataframe() -> Result<DataFrame, PolarsError>
fn schema() -> Result<Vec<(String, DataType)>, PolarsError>
Source§impl<B, L> ToDataFrame for GenericOrderBook<B, L>where
B: ToDataFrame + Columnar,
GenericBookLevel<L>: ToDataFrame + Columnar,
Currency: AsRef<str>,
Instrument: Display,
impl<B, L> ToDataFrame for GenericOrderBook<B, L>where
B: ToDataFrame + Columnar,
GenericBookLevel<L>: ToDataFrame + Columnar,
Currency: AsRef<str>,
Instrument: Display,
fn to_dataframe(&self) -> Result<DataFrame, PolarsError>
fn empty_dataframe() -> Result<DataFrame, PolarsError>
fn schema() -> Result<Vec<(String, DataType)>, PolarsError>
Source§impl<M> ToDataFrame for GenericBookLevel<M>where
M: ToDataFrame + Columnar,
PriceAmount: ToDataFrame + Columnar,
QuantityAmount: Decimal128Encode,
impl<M> ToDataFrame for GenericBookLevel<M>where
M: ToDataFrame + Columnar,
PriceAmount: ToDataFrame + Columnar,
QuantityAmount: Decimal128Encode,
fn to_dataframe(&self) -> Result<DataFrame, PolarsError>
fn empty_dataframe() -> Result<DataFrame, PolarsError>
fn schema() -> Result<Vec<(String, DataType)>, PolarsError>
Source§impl<M> ToDataFrame for GenericCandle<M>where
M: ToDataFrame + Columnar,
Ohlc: ToDataFrame + Columnar,
PriceAmount: ToDataFrame + Columnar,
QuantityAmount: ToDataFrame + Columnar,
Currency: AsRef<str>,
impl<M> ToDataFrame for GenericCandle<M>where
M: ToDataFrame + Columnar,
Ohlc: ToDataFrame + Columnar,
PriceAmount: ToDataFrame + Columnar,
QuantityAmount: ToDataFrame + Columnar,
Currency: AsRef<str>,
fn to_dataframe(&self) -> Result<DataFrame, PolarsError>
fn empty_dataframe() -> Result<DataFrame, PolarsError>
fn schema() -> Result<Vec<(String, DataType)>, PolarsError>
Source§impl<M> ToDataFrame for GenericNewsArticle<M>where
M: ToDataFrame + Columnar,
impl<M> ToDataFrame for GenericNewsArticle<M>where
M: ToDataFrame + Columnar,
fn to_dataframe(&self) -> Result<DataFrame, PolarsError>
fn empty_dataframe() -> Result<DataFrame, PolarsError>
fn schema() -> Result<Vec<(String, DataType)>, PolarsError>
Source§impl<M> ToDataFrame for GenericOptionContract<M>where
M: ToDataFrame + Columnar,
OptionContractKey: ToDataFrame + Columnar,
PriceAmount: ToDataFrame + Columnar,
OptionGreeks: ToDataFrame + Columnar,
Currency: AsRef<str>,
NonNegativeDecimal: Decimal128Encode,
impl<M> ToDataFrame for GenericOptionContract<M>where
M: ToDataFrame + Columnar,
OptionContractKey: ToDataFrame + Columnar,
PriceAmount: ToDataFrame + Columnar,
OptionGreeks: ToDataFrame + Columnar,
Currency: AsRef<str>,
NonNegativeDecimal: Decimal128Encode,
fn to_dataframe(&self) -> Result<DataFrame, PolarsError>
fn empty_dataframe() -> Result<DataFrame, PolarsError>
fn schema() -> Result<Vec<(String, DataType)>, PolarsError>
Source§impl<M> ToDataFrame for GenericOptionUpdate<M>where
M: ToDataFrame + Columnar,
OptionContractKey: ToDataFrame + Columnar,
PriceAmount: ToDataFrame + Columnar,
Currency: AsRef<str>,
NonNegativeDecimal: Decimal128Encode,
impl<M> ToDataFrame for GenericOptionUpdate<M>where
M: ToDataFrame + Columnar,
OptionContractKey: ToDataFrame + Columnar,
PriceAmount: ToDataFrame + Columnar,
Currency: AsRef<str>,
NonNegativeDecimal: Decimal128Encode,
fn to_dataframe(&self) -> Result<DataFrame, PolarsError>
fn empty_dataframe() -> Result<DataFrame, PolarsError>
fn schema() -> Result<Vec<(String, DataType)>, PolarsError>
Source§impl<M> ToDataFrame for GenericQuoteUpdate<M>where
M: ToDataFrame + Columnar,
PriceAmount: ToDataFrame + Columnar,
QuantityAmount: ToDataFrame + Columnar,
Currency: AsRef<str>,
Instrument: Display,
impl<M> ToDataFrame for GenericQuoteUpdate<M>where
M: ToDataFrame + Columnar,
PriceAmount: ToDataFrame + Columnar,
QuantityAmount: ToDataFrame + Columnar,
Currency: AsRef<str>,
Instrument: Display,
fn to_dataframe(&self) -> Result<DataFrame, PolarsError>
fn empty_dataframe() -> Result<DataFrame, PolarsError>
fn schema() -> Result<Vec<(String, DataType)>, PolarsError>
Source§impl<M> ToDataFrame for GenericSearchResult<M>
impl<M> ToDataFrame for GenericSearchResult<M>
fn to_dataframe(&self) -> Result<DataFrame, PolarsError>
fn empty_dataframe() -> Result<DataFrame, PolarsError>
fn schema() -> Result<Vec<(String, DataType)>, PolarsError>
Source§impl<M> ToDataFrame for GenericSnapshot<M>where
M: ToDataFrame + Columnar,
PriceAmount: ToDataFrame + Columnar,
QuantityAmount: ToDataFrame + Columnar,
MarketState: AsRef<str>,
Currency: AsRef<str>,
Instrument: Display,
impl<M> ToDataFrame for GenericSnapshot<M>where
M: ToDataFrame + Columnar,
PriceAmount: ToDataFrame + Columnar,
QuantityAmount: ToDataFrame + Columnar,
MarketState: AsRef<str>,
Currency: AsRef<str>,
Instrument: Display,
fn to_dataframe(&self) -> Result<DataFrame, PolarsError>
fn empty_dataframe() -> Result<DataFrame, PolarsError>
fn schema() -> Result<Vec<(String, DataType)>, PolarsError>
Source§impl<Q, L> ToDataFrame for GenericQuote<Q, L>where
Q: ToDataFrame + Columnar,
PriceAmount: ToDataFrame + Columnar,
GenericBookLevel<L>: ToDataFrame + Columnar,
QuantityAmount: ToDataFrame + Columnar,
Currency: AsRef<str>,
MarketState: AsRef<str>,
Instrument: Display,
impl<Q, L> ToDataFrame for GenericQuote<Q, L>where
Q: ToDataFrame + Columnar,
PriceAmount: ToDataFrame + Columnar,
GenericBookLevel<L>: ToDataFrame + Columnar,
QuantityAmount: ToDataFrame + Columnar,
Currency: AsRef<str>,
MarketState: AsRef<str>,
Instrument: Display,
fn to_dataframe(&self) -> Result<DataFrame, PolarsError>
fn empty_dataframe() -> Result<DataFrame, PolarsError>
fn schema() -> Result<Vec<(String, DataType)>, PolarsError>
Source§impl<R, C> ToDataFrame for GenericOptionChain<R, C>
impl<R, C> ToDataFrame for GenericOptionChain<R, C>
fn to_dataframe(&self) -> Result<DataFrame, PolarsError>
fn empty_dataframe() -> Result<DataFrame, PolarsError>
fn schema() -> Result<Vec<(String, DataType)>, PolarsError>
Source§impl<U, C> ToDataFrame for GenericCandleUpdate<U, C>where
U: ToDataFrame + Columnar,
GenericCandle<C>: ToDataFrame + Columnar,
Instrument: Display,
Interval: Display,
impl<U, C> ToDataFrame for GenericCandleUpdate<U, C>where
U: ToDataFrame + Columnar,
GenericCandle<C>: ToDataFrame + Columnar,
Instrument: Display,
Interval: Display,
fn to_dataframe(&self) -> Result<DataFrame, PolarsError>
fn empty_dataframe() -> Result<DataFrame, PolarsError>
fn schema() -> Result<Vec<(String, DataType)>, PolarsError>
Implementors§
impl ToDataFrame for Action
Available on crate feature
dataframe only.impl ToDataFrame for Address
impl ToDataFrame for BalanceSheetRow
impl ToDataFrame for Calendar
impl ToDataFrame for CashflowRow
impl ToDataFrame for CompanyProfile
impl ToDataFrame for Earningswhere
EarningsYear: ToDataFrame + Columnar,
EarningsQuarter: ToDataFrame + Columnar,
EarningsQuarterEps: ToDataFrame + Columnar,
impl ToDataFrame for EarningsQuarter
impl ToDataFrame for EarningsQuarterEps
impl ToDataFrame for EarningsTrendRow
impl ToDataFrame for EarningsYear
impl ToDataFrame for EsgInvolvement
impl ToDataFrame for EsgScores
impl ToDataFrame for EsgSummary
impl ToDataFrame for FundProfile
impl ToDataFrame for HistoryMeta
impl ToDataFrame for IncomeStatementRow
impl ToDataFrame for InsiderRosterHolder
impl ToDataFrame for InsiderTransaction
impl ToDataFrame for InstitutionalHolder
impl ToDataFrame for Instrument
impl ToDataFrame for KeyStatistics
impl ToDataFrame for MajorHolderwhere
Ratio: Decimal128Encode,
impl ToDataFrame for MonetaryAmount
impl ToDataFrame for Money
impl ToDataFrame for Ohlc
impl ToDataFrame for OptionContractKey
impl ToDataFrame for OptionGreeks
impl ToDataFrame for Price
impl ToDataFrame for PriceAmount
impl ToDataFrame for PriceTarget
impl ToDataFrame for Profile
Available on crate feature
dataframe only.