Skip to content

Commit 17c2b93

Browse files
Remove redundant check
1 parent 14b635c commit 17c2b93

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

pymc_extras/statespace/utils/data_tools.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,6 @@ def preprocess_pandas_data(data, n_obs, obs_coords=None, check_column_names=Fals
114114
if not np.issubdtype(index.dtype, np.integer):
115115
raise IndexError("Provided index is not an integer index.")
116116

117-
if not index.is_monotonic_increasing:
118-
raise IndexError("Provided index is not monotonic increasing.")
119-
120117
index_diff = index.to_series().diff().dropna().values
121118
if not (index_diff == 1).all():
122119
raise IndexError("Provided index is not monotonic increasing.")

0 commit comments

Comments
 (0)