@@ -112,7 +112,7 @@ def remove_na(arr):
112112 """
113113
114114 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." ,
116116 FutureWarning ,
117117 stacklevel = 2 ,
118118 )
@@ -127,7 +127,7 @@ def _coerce_method(converter):
127127 def wrapper (self ):
128128 if len (self ) == 1 :
129129 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 )))
131131
132132 wrapper .__name__ = "__{name}__" .format (name = converter .__name__ )
133133 return wrapper
@@ -226,7 +226,7 @@ def __init__(
226226
227227 if isinstance (data , MultiIndex ):
228228 raise NotImplementedError (
229- "initializing a Series from a " " MultiIndex is not supported"
229+ "initializing a Series from a MultiIndex is not supported"
230230 )
231231 elif isinstance (data , Index ):
232232 if name is None :
@@ -275,7 +275,7 @@ def __init__(
275275 pass
276276 elif isinstance (data , (set , frozenset )):
277277 raise TypeError (
278- "{0!r} type is unordered" "" .format (data .__class__ .__name__ )
278+ "{0!r} type is unordered" .format (data .__class__ .__name__ )
279279 )
280280 elif isinstance (data , ABCSparseArray ):
281281 # handle sparse passed here (and force conversion)
@@ -604,7 +604,7 @@ def asobject(self):
604604 *this is an internal non-public method*
605605 """
606606 warnings .warn (
607- "'asobject' is deprecated. Use 'astype(object)'" " instead" ,
607+ "'asobject' is deprecated. Use 'astype(object)' instead" ,
608608 FutureWarning ,
609609 stacklevel = 2 ,
610610 )
@@ -710,7 +710,7 @@ def put(self, *args, **kwargs):
710710 numpy.ndarray.put
711711 """
712712 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." ,
714714 FutureWarning ,
715715 stacklevel = 2 ,
716716 )
@@ -955,7 +955,7 @@ def real(self):
955955 .. deprecated 0.25.0
956956 """
957957 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 " ,
959959 FutureWarning ,
960960 stacklevel = 2 ,
961961 )
@@ -973,7 +973,7 @@ def imag(self):
973973 .. deprecated 0.25.0
974974 """
975975 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 " ,
977977 FutureWarning ,
978978 stacklevel = 2 ,
979979 )
@@ -1561,7 +1561,7 @@ def reset_index(self, level=None, drop=False, name=None, inplace=False):
15611561 ).__finalize__ (self )
15621562 elif inplace :
15631563 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"
15651565 )
15661566 else :
15671567 df = self .to_frame (name )
@@ -1813,7 +1813,7 @@ def to_sparse(self, kind="block", fill_value=None):
18131813 """
18141814
18151815 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" ,
18171817 FutureWarning ,
18181818 stacklevel = 2 ,
18191819 )
@@ -4055,7 +4055,7 @@ def _reduce(
40554055 elif isinstance (delegate , np .ndarray ):
40564056 if numeric_only :
40574057 raise NotImplementedError (
4058- "Series.{0} does not implement " " numeric_only." .format (name )
4058+ "Series.{0} does not implement numeric_only." .format (name )
40594059 )
40604060 with np .errstate (all = "ignore" ):
40614061 return op (delegate , skipna = skipna , ** kwds )
0 commit comments