PythonはPython3です。 普段はGoogle Spread sheetsにまとめています。 Markdown形式に変換して貼り付けました。 ただ変換が上手くいっていないようで、間違いがあるかもしれません。 間違いやアドバイス等ございましたら、ご指摘頂けますと幸いです。 You get articles that match your needs Yo...
#df_resultに計算結果を格納df_result=pd.DataFrame({'Return(%)':port_return,'Risk(%)':port_risk,'Sharp_Ratio':sharpe_ratio})forw,tickerinzip(np.array(port_weights).T,self.tickers):df_result[ticker+"(%)"]=wdf_result[ticker+"(%)"]=round(df_result[ticker+"(%)"]*100,1)df_result...
polarsの.when().then().otherwise()と.replace()の速度比較前提特定の列の値の置換を行う場合、pl.when().then()...otherwise()を…