I am trying to implement the python code that looks like :
forecast_out =int(math.ceil(0.1*len(df)))
in julia it looks to me:
forecast_out=int(ceil(0.1.*something))
tried :
length(df)
df[:,:]
don’t know how to iterate it over the whole data frame using a simple function,
also,how to shift columns in julia like for something like this :
In python.
df[‘label’]=df[‘forecast_out’].shift(-forecast_out)
7 posts - 2 participants