Skip to content
This repository was archived by the owner on May 19, 2025. It is now read-only.

Commit 814d468

Browse files
committed
Switch from period_range to date_range
Before this change test_period_object_column fails with the message below: FAILED qgrid/tests/test_grid.py::test_period_object_column - OverflowError: Maximum recursion level reached After this change the test passes. See also pandas-dev/pandas#53446
1 parent 2719439 commit 814d468

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

qgrid/tests/test_grid.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ def can_edit_row(row):
235235

236236

237237
def test_period_object_column():
238-
range_index = pd.period_range(start="2000", periods=10, freq="B")
238+
range_index = pd.date_range(start="2000", periods=10, freq="B")
239239
df = pd.DataFrame({"a": 5, "b": range_index}, index=range_index)
240240
view = QgridWidget(df=df)
241241
view._handle_qgrid_msg_helper(

0 commit comments

Comments
 (0)