Skip to content

Commit

Permalink
refactor the code in 'ml/data_loaders'
Browse files Browse the repository at this point in the history
  • Loading branch information
Hanna Imshenetska authored and Hanna Imshenetska committed Jan 3, 2025
1 parent 3a7c970 commit e7ea7d9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/syngen/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.10.2rc1
0.10.2rc2
4 changes: 2 additions & 2 deletions src/syngen/ml/data_loaders/data_loaders.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ def load_data(self, **kwargs) -> Tuple[pd.DataFrame, Dict]:
try:
df = self._load_data()
schema = self.load_schema()
return self._preprocess_schema_and_df(schema, df)
return self._get_schema_and_df(schema, df)
except FileNotFoundError as error:
message = (
f"It seems that the path to the table isn't valid.\n"
Expand Down Expand Up @@ -351,7 +351,7 @@ def load_schema(self) -> Dict[str, str]:
return self._get_preprocessed_schema(original_schema)

@staticmethod
def _preprocess_schema_and_df(
def _get_schema_and_df(
schema: Dict[str, str], df: pd.DataFrame
) -> Tuple[pd.DataFrame, Dict[str, str]]:
"""
Expand Down

0 comments on commit e7ea7d9

Please sign in to comment.