Skip to content

Commit

Permalink
add scrict=True to zip: https://peps.python.org/pep-0618/
Browse files Browse the repository at this point in the history
  • Loading branch information
martinvonk committed Dec 24, 2024
1 parent 9bce37a commit 33a8f73
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pastastore/store.py
Original file line number Diff line number Diff line change
Expand Up @@ -1752,14 +1752,14 @@ def _fancy_output(
if isinstance(result[0], (float, int, np.integer)):
return pd.Series(result, index=names)
elif isinstance(result[0], (pd.Series, pd.DataFrame)):
df = pd.concat(dict(zip(names, result)), axis=1)
df = pd.concat(dict(zip(names, result, scrict=True)), axis=1)
if label is not None:
df.columns.name = label
return df
elif result[0] is None:
return None # return None if first result is None?
else:
return dict(zip(names, result))
return dict(zip(names, result, strict=True))

def within(
self,
Expand Down

0 comments on commit 33a8f73

Please sign in to comment.