Apply an alias to the DataFrame. This method replaces the qualifiers of output columns with the given alias.
(self, alias: &str)
| 2413 | /// |
| 2414 | /// This method replaces the qualifiers of output columns with the given alias. |
| 2415 | pub fn alias(self, alias: &str) -> Result<DataFrame> { |
| 2416 | let plan = LogicalPlanBuilder::from(self.plan).alias(alias)?.build()?; |
| 2417 | Ok(DataFrame { |
| 2418 | session_state: self.session_state, |
| 2419 | plan, |
| 2420 | projection_requires_validation: self.projection_requires_validation, |
| 2421 | }) |
| 2422 | } |
| 2423 | |
| 2424 | /// Fill null values in specified columns with a given value |
| 2425 | /// If no columns are specified (empty vector), applies to all columns |