Skip to content
This repository was archived by the owner on Jan 9, 2023. It is now read-only.

write strings #43

Closed
wiso opened this issue Aug 30, 2017 · 2 comments
Closed

write strings #43

wiso opened this issue Aug 30, 2017 · 2 comments

Comments

@wiso
Copy link

wiso commented Aug 30, 2017

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 wiso changed the title write string write strings Aug 30, 2017
@maxnoe
Copy link
Contributor

maxnoe commented Aug 30, 2017

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

@eduardo-rodrigues
Copy link
Member

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants