From 7fd913c92800cfcf1caf26a23df2c7f4e3049c4c Mon Sep 17 00:00:00 2001 From: David Gardner Date: Tue, 15 Oct 2024 12:58:33 -0700 Subject: [PATCH] Cleanup --- python/morpheus/morpheus/_lib/src/messages/meta.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/morpheus/morpheus/_lib/src/messages/meta.cpp b/python/morpheus/morpheus/_lib/src/messages/meta.cpp index 6cde2b2e00..d1a97d8be4 100644 --- a/python/morpheus/morpheus/_lib/src/messages/meta.cpp +++ b/python/morpheus/morpheus/_lib/src/messages/meta.cpp @@ -457,11 +457,11 @@ py::object MessageMetaInterfaceProxy::get_data_frame(MessageMeta& self) } auto column_names = info.get_column_names(); + auto py_df = info.get_parent()->get_py_object(); - auto py_object = info.get_parent()->get_py_object(); py::gil_scoped_acquire gil; auto py_column_names = py::cast(column_names); - py::object py_df_slice = py_object[py_column_names]; + py::object py_df_slice = py_df[py_column_names]; return py_df_slice.attr("copy")("deep"_a = true); }