Skip to content

Commit

Permalink
adding decorator for static method
Browse files Browse the repository at this point in the history
  • Loading branch information
kbuma committed Feb 2, 2024
1 parent 8b71000 commit 6baf8bc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/maggma/stores/open_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ def query(
ret = self._query(criteria=criteria, properties=properties, sort=sort, skip=skip, limit=limit)
return (row.to_dict() for _, row in ret.iterrows())

@staticmethod
def add_missing_items(to_dt: pd.DataFrame, from_dt: pd.DataFrame, on: List[str]) -> pd.DataFrame:
orig_columns = to_dt.columns
merged = to_dt.merge(from_dt, on=on, how="left", suffixes=("", "_B"))
Expand Down

0 comments on commit 6baf8bc

Please sign in to comment.