Skip to content

Commit 0710d00

Browse files
Jason MokJason Mok
Jason Mok
authored and
Jason Mok
committed
Fix inconsistent pandas namespace usage again
1 parent 1d8d5dc commit 0710d00

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/tests/reshape/test_cut.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -801,10 +801,10 @@ def test_datetime_cut_notna():
801801
data = to_datetime(["2023-09-17", "2023-10-06"])
802802
datetime_array = data.array
803803

804-
bins = pd.date_range(start="2023-09-16", periods=3, freq="10D")
804+
bins = date_range(start="2023-09-16", periods=3, freq="10D")
805805

806806
# Use pd.cut to categorize datetime data and capture the result
807-
result = pd.cut(datetime_array, bins=bins)
807+
result = cut(datetime_array, bins=bins)
808808

809809
expected_intervals = IntervalIndex.from_arrays(
810810
[Timestamp("2023-09-16"), Timestamp("2023-09-26")],

0 commit comments

Comments
 (0)