@@ -387,7 +387,7 @@ def __new__(
387
387
warnings .warn (
388
388
"Passing keywords other than 'data', 'dtype', 'copy', 'name', "
389
389
"'tupleize_cols' is deprecated and will raise TypeError in a "
390
- "future version. Use the specific Index subclass directly instead" ,
390
+ "future version. Use the specific Index subclass directly instead. " ,
391
391
FutureWarning ,
392
392
stacklevel = 2 ,
393
393
)
@@ -620,7 +620,7 @@ def asi8(self):
620
620
An ndarray with int64 dtype.
621
621
"""
622
622
warnings .warn (
623
- "Index.asi8 is deprecated and will be removed in a future version" ,
623
+ "Index.asi8 is deprecated and will be removed in a future version. " ,
624
624
FutureWarning ,
625
625
stacklevel = 2 ,
626
626
)
@@ -2469,8 +2469,8 @@ def is_all_dates(self) -> bool:
2469
2469
Whether or not the index values only consist of dates.
2470
2470
"""
2471
2471
warnings .warn (
2472
- "Index.is_all_dates is deprecated, will be removed in a future version. "
2473
- "check index.inferred_type instead" ,
2472
+ "Index.is_all_dates is deprecated, will be removed in a future version. "
2473
+ "check index.inferred_type instead. " ,
2474
2474
FutureWarning ,
2475
2475
stacklevel = 2 ,
2476
2476
)
@@ -2835,7 +2835,7 @@ def __and__(self, other):
2835
2835
warnings .warn (
2836
2836
"Index.__and__ operating as a set operation is deprecated, "
2837
2837
"in the future this will be a logical operation matching "
2838
- "Series.__and__. Use index.intersection(other) instead" ,
2838
+ "Series.__and__. Use index.intersection(other) instead. " ,
2839
2839
FutureWarning ,
2840
2840
stacklevel = 2 ,
2841
2841
)
@@ -2846,7 +2846,7 @@ def __or__(self, other):
2846
2846
warnings .warn (
2847
2847
"Index.__or__ operating as a set operation is deprecated, "
2848
2848
"in the future this will be a logical operation matching "
2849
- "Series.__or__. Use index.union(other) instead" ,
2849
+ "Series.__or__. Use index.union(other) instead. " ,
2850
2850
FutureWarning ,
2851
2851
stacklevel = 2 ,
2852
2852
)
@@ -2857,7 +2857,7 @@ def __xor__(self, other):
2857
2857
warnings .warn (
2858
2858
"Index.__xor__ operating as a set operation is deprecated, "
2859
2859
"in the future this will be a logical operation matching "
2860
- "Series.__xor__. Use index.symmetric_difference(other) instead" ,
2860
+ "Series.__xor__. Use index.symmetric_difference(other) instead. " ,
2861
2861
FutureWarning ,
2862
2862
stacklevel = 2 ,
2863
2863
)
@@ -3455,7 +3455,7 @@ def get_loc(self, key, method=None, tolerance=None):
3455
3455
warnings .warn (
3456
3456
f"Passing method to { type (self ).__name__ } .get_loc is deprecated "
3457
3457
"and will raise in a future version. Use "
3458
- "index.get_indexer([item], method=...) instead" ,
3458
+ "index.get_indexer([item], method=...) instead. " ,
3459
3459
FutureWarning ,
3460
3460
stacklevel = 2 ,
3461
3461
)
@@ -3964,7 +3964,7 @@ def reindex(
3964
3964
# GH#42568
3965
3965
warnings .warn (
3966
3966
"reindexing with a non-unique Index is deprecated and "
3967
- "will raise in a future version" ,
3967
+ "will raise in a future version. " ,
3968
3968
FutureWarning ,
3969
3969
stacklevel = 2 ,
3970
3970
)
@@ -4695,7 +4695,7 @@ def is_type_compatible(self, kind: str_t) -> bool:
4695
4695
"""
4696
4696
warnings .warn (
4697
4697
"Index.is_type_compatible is deprecated and will be removed in a "
4698
- "future version" ,
4698
+ "future version. " ,
4699
4699
FutureWarning ,
4700
4700
stacklevel = 2 ,
4701
4701
)
@@ -5311,7 +5311,7 @@ def get_value(self, series: Series, key):
5311
5311
"""
5312
5312
warnings .warn (
5313
5313
"get_value is deprecated and will be removed in a future version. "
5314
- "Use Series[key] instead" ,
5314
+ "Use Series[key] instead. " ,
5315
5315
FutureWarning ,
5316
5316
stacklevel = 2 ,
5317
5317
)
@@ -6861,7 +6861,7 @@ def _maybe_try_sort(result, sort):
6861
6861
result = algos .safe_sort (result )
6862
6862
except TypeError as err :
6863
6863
warnings .warn (
6864
- f"{ err } , sort order is undefined for incomparable objects" ,
6864
+ f"{ err } , sort order is undefined for incomparable objects. " ,
6865
6865
RuntimeWarning ,
6866
6866
stacklevel = 4 ,
6867
6867
)
0 commit comments