From 964f032a3a962ed5f28a2b2d9183090c75ea8cf1 Mon Sep 17 00:00:00 2001 From: Harshad Hegde Date: Tue, 14 Nov 2023 11:10:40 -0600 Subject: [PATCH] shortened code --- src/sssom/util.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sssom/util.py b/src/sssom/util.py index 7208cbd8..a3bd7680 100644 --- a/src/sssom/util.py +++ b/src/sssom/util.py @@ -164,8 +164,8 @@ def from_mapping_set_document(cls, doc: MappingSetDocument) -> "MappingSetDataFr non_double_cols.replace(np.nan, "", inplace=True) df.update(non_double_cols) - df = sort_df_rows_columns(df) - return cls.with_converter(df=df, converter=doc.converter, metadata=meta) + return cls.with_converter(df=sort_df_rows_columns(df), converter=doc.converter, metadata=meta) + def to_mapping_set_document(self) -> "MappingSetDocument": """Get a mapping set document."""