Skip to content

Commit

Permalink
please codacy
Browse files Browse the repository at this point in the history
  • Loading branch information
dbrakenhoff committed Jun 26, 2024
1 parent 20c8444 commit b872c91
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pastastore/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ def _update_series(
self._validate_input_series(series)
series = self._set_series_name(series, name)
stored = self._get_series(libname, name, progressbar=False)
if self.conn_type == "pas" and (type(series) != type(stored)):
if self.conn_type == "pas" and not isinstance(series, type(stored)):
if isinstance(series, pd.DataFrame):
stored = stored.to_frame()
# get union of index
Expand Down

0 comments on commit b872c91

Please sign in to comment.