Skip to content

Commit 887736a

Browse files
committed
fix linting
1 parent ac7ee27 commit 887736a

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

pandas/_libs/lib.pyx

+3-3
Original file line numberDiff line numberDiff line change
@@ -1701,9 +1701,9 @@ cpdef bint is_string_array(ndarray values, bint skipna=False):
17011701
cpdef ndarray ensure_string_array(
17021702
values, object na_value=np.nan, bint convert_na_value=True, bint copy=True):
17031703
"""Returns a new numpy array with object dtype and only strings and na values.
1704-
1704+
17051705
Parameters
1706-
---------
1706+
----------
17071707
values : array-like
17081708
The values to be converted to str, if needed
17091709
na_value : Any
@@ -1715,7 +1715,7 @@ cpdef ndarray ensure_string_array(
17151715
17161716
Returns
17171717
-------
1718-
ndarray
1718+
ndarray
17191719
"""
17201720
cdef:
17211721
Py_ssize_t i = 0, n = len(values)

pandas/core/arrays/string_.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,8 @@ def _from_sequence(cls, scalars, dtype=None, copy=True):
202202

203203
# convert non-na-likes to str, and nan-likes to StringDtype.na_value
204204
result = lib.ensure_string_array(
205-
result, na_value=StringDtype.na_value, copy=copy)
205+
result, na_value=StringDtype.na_value, copy=copy
206+
)
206207

207208
return cls(result)
208209

0 commit comments

Comments
 (0)