go-gota / gota

Gota: DataFrames and data wrangling in Go (Golang)
Other
2.98k stars 276 forks source link

AddConstant cloumn to dataframe #129

Open mchampaneri opened 3 years ago

mchampaneri commented 3 years ago

AddConstant function adds new named column to dataframe with provided constant value.

For example, a = a.AddConstant(20, "f") adds column f with constant value 20

|  x1 |  f  |
- - - - - - -
|  1  |  20 |
|  2  |  20 |