Bierbunker / Lab-Tool

MIT License
3 stars 0 forks source link

Wir warten auf Pandas fuer inference, ExtensionDtype #26

Closed Xyhlon closed 2 years ago

Xyhlon commented 2 years ago

Siehe Pandas Issue. damit

    test_uarray = [ufloat(10, 1), ufloat(3.8, 0.2)]
    test_periods = [Period("4Q2005")] * len(test_uarray)
    df_uarray = pd.DataFrame(
        {
            "ufloats": test_uarray,
            "periods": test_periods,
        }
    )
    print(df_uarray.dtypes)
>>>ufloats           ufloat
>>>ints               int64
>>>periods    period[Q-DEC]
>>>dtype: object
Xyhlon commented 2 years ago

this is fixed with 2f22ca19e42863a3ecbd937710b5e0a82ce7b284 however improvements are welcome