Skip to content

Instantly share code, notes, and snippets.

@Zmey56
Created May 11, 2022 21:00
Show Gist options
  • Save Zmey56/26efbccb600ad18be743c916b0bc6fa3 to your computer and use it in GitHub Desktop.
Save Zmey56/26efbccb600ad18be743c916b0bc6fa3 to your computer and use it in GitHub Desktop.
df_weights = pd.DataFrame(columns=portfolios_V1.columns)
df_weights = df_weights.append(min_vol_port.rename("Minimum Volatility").to_frame().T)
df_weights = df_weights.append(max_ret_port.rename("Maximum Returns").to_frame().T)
df_weights = df_weights.append(optimal_risky_port.rename("Maximum Sharpe Ratio").to_frame().T)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment