Activity
Mon
Wed
Fri
Sun
Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
Nov
Dec
What is this?
Less
More

Memberships

Python for Quant Trading

125 members • $99/m

4 contributions to Python for Quant Trading
Error in train data.
Trying to run a back testing . have written below code +++ train.loc[:, 'Date'] = pd.to_datetime(train.index) # Fix here with .loc[] train.set_index('Date', inplace=True) +++ but getting below error. A value is trying to be set on a copy of a slice from a DataFrame. Try using .loc[row_indexer,col_indexer] = value instead could you explain why i am getting this error ?
0 likes • Nov '24
@Sunil Sala https://colab.research.google.com/drive/1KaQMmHSBII_PxbPjwakrup_QhOpC3l0y#scrollTo=q1d9S-6EHmvr please find above code. now i got graph for train and test . but i want to forecast 5 steps ahead from last printed date but not getting that forecasted value and also struggling to plot continuous graph including this forecast graph. have tried to predict forecast 5 steps with below code (mentioned in shared link too). Will appreciate if u can help me on there. #predict 5 month ahead forecast2 = model_fit.get_forecast(steps=5) predicted_mean2 = forecast2.predicted_mean conf_int2= forecast2.conf_int() forecast.series= pd.Series(predicted_mean2, index = Pmx5TC_average.index) print(predicted_mean2) print(forecast.series)
Issue with mixed format of date in time series data
Hi Guys , How can I handle mixed format of date which is object string and trying to convert into date string . Have tried pd.to_datetime() but it’s not help me out .
0 likes • Jul '24
Hi Sunil, i tried but i am still getting error. please find attached excel file for your reference.
0 likes • Jul '24
@Sunil Sala .thanks alot .Sunil .its works
Rolling data in future trade
Any future trader, who can share idea about how to roll data from current month on next month once current month settled in python for continuous data without many spike due to backwardation or contango? would love to hear your opinion. tks.
0
0
Briefly about me
Name - Avinash Kumar What i do - I am leading derivative desk in Europe Market i trade - Future and Option mainly in Shipping My expertise is - Future and Option Goal- Lets learn and grow together in Algo trading
3
0
1-4 of 4
Avinash Kumar
2
14points to level up
@avinash-kumar-9676
I am leading a derivative desk in shipping firm.

Active 24d ago
Joined Jun 30, 2024
Powered by