• José Morales's avatar
    [python-package] add support for pandas nullable types (fixes #4173) (#4927) · f1856956
    José Morales authored
    
    
    * map nullable dtypes to regular float dtypes
    
    * cast x3 to float after introducing missing values
    
    * add test for regular dtypes
    
    * use .astype and then values. update nullable_dtypes test and include test for regular numpy dtypes
    
    * more specific allowed dtypes. test no copy when single float dtype df
    
    * use np.find_common_type. set np.float128 to None when it isn't supported
    
    * set default as type(None)
    
    * move tests that use lgb.train to test_engine
    
    * include np.float32 when finding common dtype
    
    * Apply suggestions from code review
    Co-authored-by: default avatarNikita Titov <nekit94-08@mail.ru>
    
    * add linebreak
    Co-authored-by: default avatarNikita Titov <nekit94-08@mail.ru>
    f1856956
test_basic.py 26.2 KB