ZhengyaoJiang / PGPortfolio

PGPortfolio: Policy Gradient Portfolio, the source code of "A Deep Reinforcement Learning Framework for the Financial Portfolio Management Problem"(https://arxiv.org/pdf/1706.10059.pdf).
GNU General Public License v3.0
1.73k stars 748 forks source link

pandas panel #128

Open lefig opened 4 years ago

lefig commented 4 years ago

Hi there

Apologies for ask as I am not a python programmer, but I have followed the excellent usage instructions but have a problem with running this on a more recent version of pandas.

The panel throws an exception due to invalid parameters:

globaldatamatrix.py:

 panel = pd.Panel(items=features, major_axis=coins, minor_axis=time_index, dtype=np.float32)

The exception: object() takes no parameters

I think that I need to create a multi-index df using the above logic but am not sure.

Thanks!

0xdarkman commented 4 years ago

use pandas < 1.0 e.g. 0.24

hanseul-jeong commented 3 years ago

"Panel was removed in 0.25.0. For prior documentation, see the 0.24 documentation"

Note please

lefig commented 3 years ago

Thank you both