@@ -112,7 +112,7 @@ def remove_na(arr):
112
112
"""
113
113
114
114
warnings .warn (
115
- "remove_na is deprecated and is a private " " function. Do not use." ,
115
+ "remove_na is deprecated and is a private function. Do not use." ,
116
116
FutureWarning ,
117
117
stacklevel = 2 ,
118
118
)
@@ -127,7 +127,7 @@ def _coerce_method(converter):
127
127
def wrapper (self ):
128
128
if len (self ) == 1 :
129
129
return converter (self .iloc [0 ])
130
- raise TypeError ("cannot convert the series to " " {0}" .format (str (converter )))
130
+ raise TypeError ("cannot convert the series to {0}" .format (str (converter )))
131
131
132
132
wrapper .__name__ = "__{name}__" .format (name = converter .__name__ )
133
133
return wrapper
@@ -226,7 +226,7 @@ def __init__(
226
226
227
227
if isinstance (data , MultiIndex ):
228
228
raise NotImplementedError (
229
- "initializing a Series from a " " MultiIndex is not supported"
229
+ "initializing a Series from a MultiIndex is not supported"
230
230
)
231
231
elif isinstance (data , Index ):
232
232
if name is None :
@@ -275,7 +275,7 @@ def __init__(
275
275
pass
276
276
elif isinstance (data , (set , frozenset )):
277
277
raise TypeError (
278
- "{0!r} type is unordered" "" .format (data .__class__ .__name__ )
278
+ "{0!r} type is unordered" .format (data .__class__ .__name__ )
279
279
)
280
280
elif isinstance (data , ABCSparseArray ):
281
281
# handle sparse passed here (and force conversion)
@@ -604,7 +604,7 @@ def asobject(self):
604
604
*this is an internal non-public method*
605
605
"""
606
606
warnings .warn (
607
- "'asobject' is deprecated. Use 'astype(object)'" " instead" ,
607
+ "'asobject' is deprecated. Use 'astype(object)' instead" ,
608
608
FutureWarning ,
609
609
stacklevel = 2 ,
610
610
)
@@ -710,7 +710,7 @@ def put(self, *args, **kwargs):
710
710
numpy.ndarray.put
711
711
"""
712
712
warnings .warn (
713
- "`put` has been deprecated and will be removed in a" " future version." ,
713
+ "`put` has been deprecated and will be removed in a future version." ,
714
714
FutureWarning ,
715
715
stacklevel = 2 ,
716
716
)
@@ -955,7 +955,7 @@ def real(self):
955
955
.. deprecated 0.25.0
956
956
"""
957
957
warnings .warn (
958
- "`real` has be deprecated and will be removed in a " " future verison " ,
958
+ "`real` has be deprecated and will be removed in a future version " ,
959
959
FutureWarning ,
960
960
stacklevel = 2 ,
961
961
)
@@ -973,7 +973,7 @@ def imag(self):
973
973
.. deprecated 0.25.0
974
974
"""
975
975
warnings .warn (
976
- "`imag` has be deprecated and will be removed in a " " future verison " ,
976
+ "`imag` has be deprecated and will be removed in a future version " ,
977
977
FutureWarning ,
978
978
stacklevel = 2 ,
979
979
)
@@ -1561,7 +1561,7 @@ def reset_index(self, level=None, drop=False, name=None, inplace=False):
1561
1561
).__finalize__ (self )
1562
1562
elif inplace :
1563
1563
raise TypeError (
1564
- "Cannot reset_index inplace on a Series " " to create a DataFrame"
1564
+ "Cannot reset_index inplace on a Series to create a DataFrame"
1565
1565
)
1566
1566
else :
1567
1567
df = self .to_frame (name )
@@ -1813,7 +1813,7 @@ def to_sparse(self, kind="block", fill_value=None):
1813
1813
"""
1814
1814
1815
1815
warnings .warn (
1816
- "Series.to_sparse is deprecated and will be removed " " in a future version" ,
1816
+ "Series.to_sparse is deprecated and will be removed in a future version" ,
1817
1817
FutureWarning ,
1818
1818
stacklevel = 2 ,
1819
1819
)
@@ -4055,7 +4055,7 @@ def _reduce(
4055
4055
elif isinstance (delegate , np .ndarray ):
4056
4056
if numeric_only :
4057
4057
raise NotImplementedError (
4058
- "Series.{0} does not implement " " numeric_only." .format (name )
4058
+ "Series.{0} does not implement numeric_only." .format (name )
4059
4059
)
4060
4060
with np .errstate (all = "ignore" ):
4061
4061
return op (delegate , skipna = skipna , ** kwds )
0 commit comments