-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is needed
Description
Is your feature request related to a problem or challenge? Please describe what you are trying to do.
When using the dataframe API there is no easy way to cast a column to another type
Describe the solution you'd like
I would like a cast function something like this:
fn cast(expr: Expr, data_type: DataType) -> Expr {
Expr::Cast {
expr: Box::new(expr),
data_type,
}
}This would allow me to then write dataframe code like this:
.with_column(
"unixReviewTimestamp",
cast(
col("unixReviewTime"),
DataType::Timestamp(TimeUnit::Millisecond, None),
),
)?Describe alternatives you've considered
None
Additional context
None
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is needed