Ask Your Question
1

When using case_when in R in Databricks, why does mutate give an error?

asked 2023-06-16 17:46:19 +0000

lakamha gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2023-06-16 18:15:01 +0000

huitzilopochtli gravatar image

Mutate gives an error when using casewhen in R in Databricks if there is a mismatch in the number of rows or a data type issue with the input data frames. This can also happen if there are missing values or NULL values in the input data frames. It is important to check the data types of the input columns and ensure that they are compatible with each other. It may also help to check the syntax of the casewhen statement and ensure that all necessary arguments are included.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-06-16 17:46:19 +0000

Seen: 14 times

Last updated: Jun 16 '23