From 306a2d730cf5c75e2f05fbe2f180c59fea6e0dd5 Mon Sep 17 00:00:00 2001 From: Gourav Kumar Date: Tue, 22 Feb 2022 13:05:05 +0530 Subject: [PATCH] Series repr now show data type --- fincal/core.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/fincal/core.py b/fincal/core.py index 698211e..ba7a2d6 100644 --- a/fincal/core.py +++ b/fincal/core.py @@ -162,16 +162,12 @@ class Series(UserList): else: func = types_dict[data_type] data = [func(i) for i in data] - # elif data_type == 'number': - # data = [float(i) for i in data] - # elif data_type == 'boolean': - # data = [bool(i) for i in data] self.dtype = types_dict[data_type] self.data = data def __repr__(self): - return f"{self.__class__.__name__}({self.data})" + return f"{self.__class__.__name__}({self.data}, data_type='{self.data_type.__name__}')" def __getitem__(self, i): if isinstance(i, slice):