Skip to main content

ToDataFrame

Trait ToDataFrame 

Source
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§

Source

fn to_dataframe(&self) -> Result<DataFrame, PolarsError>

§Errors

Returns an error if DataFrame construction fails.

Source

fn empty_dataframe() -> Result<DataFrame, PolarsError>

§Errors

Returns an error if DataFrame construction fails.

Source

fn schema() -> Result<Vec<(String, DataType)>, PolarsError>

§Errors

Returns an error if schema generation 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 ()

Source§

impl ToDataFrame for AnalysisSummary

Source§

impl ToDataFrame for EarningsEstimate

Source§

impl ToDataFrame for EpsRevisions

Source§

impl ToDataFrame for EpsTrend

Source§

impl ToDataFrame for ExchangeRate
where Currency: AsRef<str>,

Source§

impl ToDataFrame for RevenueEstimate

Source§

impl ToDataFrame for RevisionPoint

Source§

impl ToDataFrame for TrendPoint

Source§

impl<B, L> ToDataFrame for GenericOrderBook<B, L>

Source§

impl<M> ToDataFrame for GenericBookLevel<M>

Source§

impl<M> ToDataFrame for GenericCandle<M>

Source§

impl<M> ToDataFrame for GenericNewsArticle<M>
where M: ToDataFrame + Columnar,

Source§

impl<M> ToDataFrame for GenericOptionContract<M>

Source§

impl<M> ToDataFrame for GenericOptionUpdate<M>

Source§

impl<M> ToDataFrame for GenericQuoteUpdate<M>

Source§

impl<M> ToDataFrame for GenericSearchResult<M>

Source§

impl<M> ToDataFrame for GenericSnapshot<M>

Source§

impl<Q, L> ToDataFrame for GenericQuote<Q, L>

Source§

impl<R, C> ToDataFrame for GenericOptionChain<R, C>

Source§

impl<U, C> ToDataFrame for GenericCandleUpdate<U, C>

Implementors§

Source§

impl ToDataFrame for Action

Available on crate feature dataframe only.
Source§

impl ToDataFrame for Address

Source§

impl ToDataFrame for BalanceSheetRow

Source§

impl ToDataFrame for Calendar

Source§

impl ToDataFrame for CashflowRow

Source§

impl ToDataFrame for CompanyProfile

Source§

impl ToDataFrame for Earnings

Source§

impl ToDataFrame for EarningsQuarter

Source§

impl ToDataFrame for EarningsQuarterEps

Source§

impl ToDataFrame for EarningsTrendRow

Source§

impl ToDataFrame for EarningsYear

Source§

impl ToDataFrame for EsgInvolvement

Source§

impl ToDataFrame for EsgScores

Source§

impl ToDataFrame for EsgSummary

Source§

impl ToDataFrame for FundProfile

Source§

impl ToDataFrame for HistoryMeta
where Tz: Display,

Source§

impl ToDataFrame for IncomeStatementRow

Source§

impl ToDataFrame for InsiderRosterHolder

Source§

impl ToDataFrame for InsiderTransaction

Source§

impl ToDataFrame for InstitutionalHolder

Source§

impl ToDataFrame for Instrument

Source§

impl ToDataFrame for KeyStatistics

Source§

impl ToDataFrame for MajorHolder

Source§

impl ToDataFrame for MonetaryAmount
where Currency: AsRef<str>,

Source§

impl ToDataFrame for Money
where Currency: AsRef<str>,

Source§

impl ToDataFrame for NetSharePurchaseActivity

Source§

impl ToDataFrame for Ohlc

Source§

impl ToDataFrame for OptionContractKey

Source§

impl ToDataFrame for OptionGreeks

Source§

impl ToDataFrame for Price
where Currency: AsRef<str>,

Source§

impl ToDataFrame for PriceAmount

Source§

impl ToDataFrame for PriceTarget

Source§

impl ToDataFrame for Profile

Available on crate feature dataframe only.
Source§

impl ToDataFrame for QuantityAmount

Source§

impl ToDataFrame for RecommendationRow

Source§

impl ToDataFrame for RecommendationSummary

Source§

impl ToDataFrame for ShareCount

Source§

impl ToDataFrame for UpgradeDowngradeRow