Is there an equivalent of eachindex() for DataFrames?

One option might be:

for i in 1:nrow(df), j in 1:ncol(df)
    df[i,j] = "$(df[i,j]) sold out"
end
2 Likes