diff --git a/src/awkward/_v2/_connect/rdataframe/to_rdataframe.py b/src/awkward/_v2/_connect/rdataframe/to_rdataframe.py index de5ee83b94..27bc79aa89 100644 --- a/src/awkward/_v2/_connect/rdataframe/to_rdataframe.py +++ b/src/awkward/_v2/_connect/rdataframe/to_rdataframe.py @@ -10,6 +10,11 @@ compiler = ROOT.gInterpreter.Declare compiler_lock = threading.Lock() +compiler( + """ +#include +""" +) def compile(source_code): @@ -144,8 +149,6 @@ def data_frame(self, layouts): if not hasattr(ROOT, array_data_source): cpp_code = f""" -#include - namespace awkward {{ class {array_data_source} final @@ -258,5 +261,4 @@ class {array_data_source} final (self.data_ptrs_list), ) - rdf.lookups = self.lookups return rdf