From b9f117c338e05884a8519a0b3cc9b0ad38c1ecf0 Mon Sep 17 00:00:00 2001 From: Thomas Lukasiewicz <143830652+ThomasL25@users.noreply.github.com> Date: Mon, 14 Apr 2025 21:28:28 -0400 Subject: [PATCH] Update tables.py for Issue #618 Issue #618 states that the return values for the type of rows and columns result in different things. I believe this should keep it uniform between them. --- datascience/tables.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/datascience/tables.py b/datascience/tables.py index bd93b6dec..2c0602540 100644 --- a/datascience/tables.py +++ b/datascience/tables.py @@ -5709,7 +5709,8 @@ def item(self, index_or_label): index = index_or_label else: index = self._table.column_index(index_or_label) - return self[index] + value = self[index] + return value.item() if hasattr(value, 'item') else value def __repr__(self): return 'Row({})'.format(', '.join('{}={}'.format(