Trait datafusion::dataframe::DataFrame [−][src]
pub trait DataFrame { fn select(&self, expr: Vec<Expr>) -> Result<Rc<DataFrame>>; fn filter(&self, expr: Expr) -> Result<Rc<DataFrame>>; fn col(&self, column_name: &str) -> Result<Expr>; fn schema(&self) -> &Rc<Schema>; fn plan(&self) -> &Rc<LogicalPlan>; fn show(&self, count: usize); }
DataFrame is an abstraction of a logical plan and a schema
Required Methods
fn select(&self, expr: Vec<Expr>) -> Result<Rc<DataFrame>>
Projection
fn filter(&self, expr: Expr) -> Result<Rc<DataFrame>>
Selection
fn col(&self, column_name: &str) -> Result<Expr>
Return an expression representing the specified column
fn schema(&self) -> &Rc<Schema>
fn plan(&self) -> &Rc<LogicalPlan>
fn show(&self, count: usize)
show N rows (useful for debugging)
Implementors
impl DataFrame for DF