Was looking around, but didn’t find an answer.
Specifically, I have a
DataFrame and one column has data type
Int64; it has the unique values
1 (meaning obviously
true). What is the easiest quickest way to have the column including its entries converted to the boolean data type?
I thought about a kind of loop, but are there already existing functions available that I should know of?
More generally, please explain how to best tackle this (especially conceptually), if using a self-made solution.
My thought then might be to take the whole array/column, check every value, make a new array based on set conditions (if 0, make false; if 1, make true, etc.), mutate or add the new array into the dataframe.