how do I get part of a string from a field in the dataframe
I don’t know what you are looking for exactly, but maybe this might be helpful:
using DataFrames, VegaDatasets tmp = DataFrame(dataset("stocks")) tmp[!, :smaller_string] .= SubString.(tmp.symbol,1,2)
note that symbol is the name of the column in the dataframe.
The VegaDatasets is loaded because I am too lazy to come up with a dataframe on my own.
helped me a lot … thanks