@staticmethod def lightplot(df, datathres): df = df[['date', "CMKT","CMOM", "TSQM"]] df…
- User
@staticmethod def lightplot(df, data_thres):
_df = df[['date', "CMKT","CMOM", "TSQM"]] _df =_df[_df['date']> data_thres] _df = _df.dropna() _df['cum_CMoM'] = (1 + _df['CMOM']).cumprod() _df['cum_CMKT'] = (1 + _df['CMKT']).cumprod() ## 중간에 400프로 상승하는부분이 있어서(short port 기준) log로는 치환이 불가가 _df['cum_TSQM'] = (1 + _df['TSQM']).cumprod() #print(_df.head()) _df = _df.set_index('date') _df[['cum_CMoM', 'cum_CMKT', 'cum_TSQM']].plot()이부분 plt.show() 이런형태로 바꿔줄수있어?
Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.