scikit-hep / root_pandas

A Python module for conveniently loading/saving ROOT files as pandas DataFrames
MIT License
109 stars 35 forks source link

write strings #43

Closed wiso closed 1 year ago

wiso commented 7 years ago

I guess this is connected with #38 but I am using a quite newer version of pandas (0.20.3)

df = pandas.DataFrame({"x": [10, 20, 30], "y": ['ten', 'twenty', 'thirty']})
print df.dtypes

# x     int64
# y    object
# dtype: object

df.to_root('t.root')
f = ROOT.TFile.Open("t.root")   
f.Get("default").Scan()       

# ************************************
# *    Row   *         x * __index__ *
# ************************************
# *        0 *        10 *         0 *
# *        1 *        20 *         1 *
# *        2 *        30 *         2 *
# ************************************

why the string column is not written?

maxnoe commented 7 years ago

Probably an issue for http://github.com/ibab/root_pandas

eduardo-rodrigues commented 1 year ago

As explicitly written in the README since a while, root_pandas, and root_numpy on which it depends, has been deprecated and effectively unmaintained for quite a while. We decided to close anthing outstanding as "won't do" and archive the package at this point.