Skip to content

Commit c70da3e

Browse files
authored
Workaround for the pd.read_csv's index_col bug in pandas 3.0 dev version (#3295)
1 parent 96f70f4 commit c70da3e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pygmt/tests/test_grdhisteq.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,10 +125,9 @@ def test_compute_bins_outfile(grid, expected_df, region):
125125
header=None,
126126
names=["start", "stop", "bin_id"],
127127
dtype={"start": np.float32, "stop": np.float32, "bin_id": np.uint32},
128-
index_col="bin_id",
129128
)
130129
pd.testing.assert_frame_equal(
131-
left=temp_df, right=expected_df.set_index("bin_id")
130+
left=temp_df.set_index("bin_id"), right=expected_df.set_index("bin_id")
132131
)
133132

134133

0 commit comments

Comments
 (0)