def test_datetime_index(testlist): index = DatetimeIndex(testlist) index_pd = pd.DatetimeIndex(testlist) assert index.is_unique == index_pd.is_unique assert index.is_monotonic == index_pd.is_monotonic assert index.is_monotonic_increasing == index_pd.is_monotonic_increasing assert index.is_monotonic_decreasing == index_pd.is_monotonic_decreasing
def test_dt_index(data, field): pd_data = data.copy() gdf_data = DatetimeIndex(pd_data) assert_index_equal( getattr(gdf_data, field).to_pandas(), getattr(pd_data, field))
def test_dt_index(data, field): pd_data = data.copy() gdf_data = DatetimeIndex(pd_data) assert_eq(getattr(gdf_data, field), getattr(pd_data, field))