diff --git a/ixmp4/data/db/base.py b/ixmp4/data/db/base.py index 3061e162..0f68d5af 100644 --- a/ixmp4/data/db/base.py +++ b/ixmp4/data/db/base.py @@ -239,10 +239,7 @@ def tabulate( if self.session.bind is not None: with self.engine.connect() as con: - return ( - pd.read_sql(_exc, con=con).replace([np.nan], [None]) - # pd.read_sql(_exc, con=con).fillna(np.nan).replace([np.nan], [None]) # noqa - ) + return pd.read_sql(_exc, con=con).replace([np.nan], [None]) else: raise ProgrammingError("Database session is closed.")