Skip to content

Commit

Permalink
groupby
Browse files Browse the repository at this point in the history
  • Loading branch information
zqfang committed Jun 15, 2023
1 parent 77e2dc3 commit a4f6fea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gseapy/base.py
Expand Up @@ -507,7 +507,7 @@ def to_df(
# self._results[name] = dd.set_index("term").to_dict(orient="index")
# else:
# self._results = res_df.set_index("term").to_dict(orient="index")
for name, dd in res_df.groupby(["name"]):
for name, dd in res_df.groupby("name"):
self._results[name] = dd.set_index("term").to_dict(orient="index")
# trim
res_df.rename(
Expand Down

0 comments on commit a4f6fea

Please sign in to comment.