ScottfreeLLC / AlphaPy

Python AutoML for Trading Systems and Sports Betting
Apache License 2.0
1.11k stars 201 forks source link

AttributeError: type object 'DataFrame' has no attribute 'from_items' #28

Closed thegamecat closed 4 years ago

thegamecat commented 4 years ago

Winbash python3.7 running mflow:

Traceback (most recent call last): File "/home/freefall/.local/bin/mflow", line 8, in sys.exit(main()) File "/home/d/.local/lib/python3.7/site-packages/alphapy/market_flow.py", line 430, in main model = market_pipeline(model, market_specs) File "/home/d/.local/lib/python3.7/site-packages/alphapy/market_flow.py", line 318, in market_pipeline tfs = run_system(model, system, group, intraday) File "/home/fredefall/.local/lib/python3.7/site-packages/alphapy/system.py", line 370, in run_system tf = DataFrame.from_items(gtlist, orient='index', columns=Trade.states) AttributeError: type object 'DataFrame' has no attribute 'from_items'

mrconway commented 4 years ago

Yes, DataFrame.from_items was deprecated in pandas 1.0. We'll put in a fix for this shortly.

mrconway commented 4 years ago

Fixed in 2.4.1