Skip to content

Commit 0efb5e8

Browse files
authored
CI,STYLE: narrow down ignore-words-list of codespell (#38847)
1 parent 8e3ba92 commit 0efb5e8

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

pandas/core/arrays/sparse/accessor.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -333,18 +333,18 @@ def to_coo(self):
333333
if isinstance(dtype, SparseDtype):
334334
dtype = dtype.subtype
335335

336-
cols, rows, datas = [], [], []
336+
cols, rows, data = [], [], []
337337
for col, name in enumerate(self._parent):
338338
s = self._parent[name]
339339
row = s.array.sp_index.to_int_index().indices
340340
cols.append(np.repeat(col, len(row)))
341341
rows.append(row)
342-
datas.append(s.array.sp_values.astype(dtype, copy=False))
342+
data.append(s.array.sp_values.astype(dtype, copy=False))
343343

344344
cols = np.concatenate(cols)
345345
rows = np.concatenate(rows)
346-
datas = np.concatenate(datas)
347-
return coo_matrix((datas, (rows, cols)), shape=self._parent.shape)
346+
data = np.concatenate(data)
347+
return coo_matrix((data, (rows, cols)), shape=self._parent.shape)
348348

349349
@property
350350
def density(self) -> float:

pandas/core/strings/accessor.py

+8-8
Original file line numberDiff line numberDiff line change
@@ -1547,48 +1547,48 @@ def slice(self, start=None, stop=None, step=None):
15471547
15481548
Examples
15491549
--------
1550-
>>> s = pd.Series(["koala", "fox", "chameleon"])
1550+
>>> s = pd.Series(["koala", "dog", "chameleon"])
15511551
>>> s
15521552
0 koala
1553-
1 fox
1553+
1 dog
15541554
2 chameleon
15551555
dtype: object
15561556
15571557
>>> s.str.slice(start=1)
15581558
0 oala
1559-
1 ox
1559+
1 og
15601560
2 hameleon
15611561
dtype: object
15621562
15631563
>>> s.str.slice(start=-1)
15641564
0 a
1565-
1 x
1565+
1 g
15661566
2 n
15671567
dtype: object
15681568
15691569
>>> s.str.slice(stop=2)
15701570
0 ko
1571-
1 fo
1571+
1 do
15721572
2 ch
15731573
dtype: object
15741574
15751575
>>> s.str.slice(step=2)
15761576
0 kaa
1577-
1 fx
1577+
1 dg
15781578
2 caeen
15791579
dtype: object
15801580
15811581
>>> s.str.slice(start=0, stop=5, step=3)
15821582
0 kl
1583-
1 f
1583+
1 d
15841584
2 cm
15851585
dtype: object
15861586
15871587
Equivalent behaviour to:
15881588
15891589
>>> s.str[0:5:3]
15901590
0 kl
1591-
1 f
1591+
1 d
15921592
2 cm
15931593
dtype: object
15941594
"""

setup.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ filterwarnings =
6767
junit_family=xunit2
6868

6969
[codespell]
70-
ignore-words-list=ba,blocs,coo,datas,fo,hist,nd,ser
70+
ignore-words-list=ba,blocs,coo,hist,nd,ser
7171

7272
[coverage:run]
7373
branch = False

0 commit comments

Comments
 (0)