root_pandas icon indicating copy to clipboard operation
root_pandas copied to clipboard

write strings

Open wiso opened this issue 7 years ago • 1 comments

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?

wiso avatar Aug 30 '17 13:08 wiso

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

maxnoe avatar Aug 30 '17 16:08 maxnoe

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.

eduardo-rodrigues avatar Jan 09 '23 09:01 eduardo-rodrigues