erp12 / pyshgp

Push Genetic Programming in Python.
http://erp12.github.io/pyshgp
MIT License
74 stars 23 forks source link

PushEstimator validation incorrectly fails on Pandas DataFrames. #146

Closed erp12 closed 4 years ago

erp12 commented 4 years ago

Reported by @nayabur

My initial reaction is to say that check_2d() should immediately return if the argument is a DataFrame since they are inherently 2D. There could be other good solutions as well.

There should also be a test for this in test_check_2d_on_2d().