Skip to content

Commit

Permalink
Revert "Added test for github issue pandas-dev#33830 to test that cat…
Browse files Browse the repository at this point in the history
…egorical was preserving DateTimeIndex freq attribute"

This reverts commit e4b8cbf.
  • Loading branch information
andjhall committed Apr 14, 2022
1 parent afb24c1 commit 76d2522
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions pandas/tests/indexes/datetimes/test_constructors.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

import dateutil
import numpy as np
from pandas._testing.asserters import assert_equal
import pytest
import pytz

Expand Down Expand Up @@ -85,16 +84,6 @@ def test_categorical_preserves_tz(self):
result = DatetimeIndex(obj)
tm.assert_index_equal(result, dti)

def test_categorical_preserves_freq(self):
# GH33830 freq retention in categorical
dti = pd.date_range('2016-01-01', periods=5)
expected = dti.freq

cat = pd.Categorical(dti)
result = cat.categories.freq

assert expected == result

def test_dti_with_period_data_raises(self):
# GH#23675
data = pd.PeriodIndex(["2016Q1", "2016Q2"], freq="Q")
Expand Down

0 comments on commit 76d2522

Please sign in to comment.