I have the following generic DataFrame
with 100 rows:
using DataFrames
df = DataFrame(X=linspace(0.0, 2π, 100))
head(df)
X
1 0.0
2 1.0471975511965976
3 2.0943951023931953
4 3.141592653589793
How to, for example, compute the sine of the values of the column X
and insert in a new column SinX
?