We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d8d5dc commit 0710d00Copy full SHA for 0710d00
pandas/tests/reshape/test_cut.py
@@ -801,10 +801,10 @@ def test_datetime_cut_notna():
801
data = to_datetime(["2023-09-17", "2023-10-06"])
802
datetime_array = data.array
803
804
- bins = pd.date_range(start="2023-09-16", periods=3, freq="10D")
+ bins = date_range(start="2023-09-16", periods=3, freq="10D")
805
806
# Use pd.cut to categorize datetime data and capture the result
807
- result = pd.cut(datetime_array, bins=bins)
+ result = cut(datetime_array, bins=bins)
808
809
expected_intervals = IntervalIndex.from_arrays(
810
[Timestamp("2023-09-16"), Timestamp("2023-09-26")],
0 commit comments