Marigold / universal-portfolios

Collection of algorithms for online portfolio selection
Other
774 stars 213 forks source link

On-line portfolios.ipynb: use non-deprecated args to pandas.DataFrame.drop(..) #103

Closed mdengler closed 1 year ago

mdengler commented 1 year ago

This commit updates the call to pandas.DataFrame.drop(..) to avoid this current (origin/master) warning (which becomes an error in later versions of pandas)u:

/tmp/ipykernel_49/729256678.py:5: FutureWarning: In a future version of pandas all arguments of DataFrame.drop except for the argument 'labels' will be keyword-only.
  result_without = algo.run(data.drop([most_profitable], 1))