Skip to content

Commit 6845b99

Browse files
lisa.tests.starting.utilclamp: Fix for pandas 2.0.0
DataFrame.pivot(index=None) seems to have changed behavior: pandas-dev/pandas#52436 Remove index=None so that it works across pandas versions.
1 parent a83f4b3 commit 6845b99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lisa/tests/staging/utilclamp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ def _get_trace_df(self):
172172

173173
df_freq = self.trace.ana.frequency.df_cpus_frequency()
174174
df_freq = df_freq[['cpu', 'frequency']]
175-
df_freq = df_freq.pivot(index=None, columns='cpu', values='frequency')
175+
df_freq = df_freq.pivot(columns='cpu', values='frequency')
176176
df_freq.reset_index(inplace=True)
177177
df_freq.set_index('Time', inplace=True)
178178

0 commit comments

Comments
 (0)