Quantcast
Channel: First steps - JuliaLang
Viewing all articles
Browse latest Browse all 2795

Implementing a ceil function in a complete dataFrame

$
0
0

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

Read full topic


Viewing all articles
Browse latest Browse all 2795

Latest Images

Trending Articles



Latest Images