Skip to content

Commit

Permalink
pandas round
Browse files Browse the repository at this point in the history
  • Loading branch information
bottler committed Dec 3, 2024
1 parent 0a412c9 commit 607645c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nevergrad/optimization/test_optimizerlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ def save(self) -> None:
# then update recommendation file
names = sorted(x for x in self.recommendations.index if x in registry)
recom = self.recommendations.loc[names, :]
recom.iloc[:, :] = np.round(recom, 10)
recom = recom.round(10)
recom.to_csv(self.filepath)


Expand Down

0 comments on commit 607645c

Please sign in to comment.