From 4f0b25327f2a0ed38f87fbe950fdbbdbf9afa267 Mon Sep 17 00:00:00 2001 From: Tobias Tekampe Date: Thu, 24 Aug 2017 14:55:20 +0200 Subject: [PATCH 1/2] changed the default value of the name of the TTree created by to_root --- root_pandas/readwrite.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/root_pandas/readwrite.py b/root_pandas/readwrite.py index 1f44c29..1cfc14b 100644 --- a/root_pandas/readwrite.py +++ b/root_pandas/readwrite.py @@ -239,7 +239,7 @@ def convert_to_dataframe(array, start_index=None): return df -def to_root(df, path, key='default', mode='w', store_index=True, *args, **kwargs): +def to_root(df, path, key='DecayTree', mode='w', store_index=True, *args, **kwargs): """ Write DataFrame to a ROOT file. From d36cac06fe20fdf561a71e70c99469bdfd45122a Mon Sep 17 00:00:00 2001 From: Tobias Tekampe Date: Mon, 28 Aug 2017 10:29:30 +0200 Subject: [PATCH 2/2] changed default TTree name in to_root to something more general --- root_pandas/readwrite.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/root_pandas/readwrite.py b/root_pandas/readwrite.py index 1cfc14b..2d5c89a 100644 --- a/root_pandas/readwrite.py +++ b/root_pandas/readwrite.py @@ -239,7 +239,7 @@ def convert_to_dataframe(array, start_index=None): return df -def to_root(df, path, key='DecayTree', mode='w', store_index=True, *args, **kwargs): +def to_root(df, path, key='my_ttree', mode='w', store_index=True, *args, **kwargs): """ Write DataFrame to a ROOT file.