Quantcast
Channel: First steps - JuliaLang
Viewing all articles
Browse latest Browse all 2795

How to change row's values of a column matching pattern in Julia?

$
0
0

Hello,
I have a dataframe where some rows of a given column (‘group’) have a certain value (‘normal’). I would like to change such a value to something else. What would be the syntax? In other words, I am looking for Julia’s equivalent to R’s
df$group[df32$group == "Normal"] <- "Healthy"
And what would be the syntax for renaming the whole column?
Thank you

4 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 2795

Trending Articles