Skip to content

Commit a160caf

Browse files
authored
DOC: Fix some typos in pandas/. (#47022)
1 parent 6aaa183 commit a160caf

File tree

13 files changed

+14
-14
lines changed

13 files changed

+14
-14
lines changed

pandas/_libs/src/ujson/lib/ultrajson.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Portions of code from MODP_ASCII - Ascii transformations (upper/lower, etc)
2929
https://github.com/client9/stringencoders
3030
Copyright (c) 2007 Nick Galbreath -- nickg [at] modp [dot] com. All rights reserved.
3131
32-
Numeric decoder derived from from TCL library
32+
Numeric decoder derived from TCL library
3333
https://www.opensource.apple.com/source/tcl/tcl-14/tcl/license.terms
3434
* Copyright (c) 1988-1993 The Regents of the University of California.
3535
* Copyright (c) 1994 Sun Microsystems, Inc.

pandas/_libs/src/ujson/lib/ultrajsondec.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Portions of code from MODP_ASCII - Ascii transformations (upper/lower, etc)
3232
Copyright (c) 2007 Nick Galbreath -- nickg [at] modp [dot] com. All rights
3333
reserved.
3434
35-
Numeric decoder derived from from TCL library
35+
Numeric decoder derived from TCL library
3636
https://www.opensource.apple.com/source/tcl/tcl-14/tcl/license.terms
3737
* Copyright (c) 1988-1993 The Regents of the University of California.
3838
* Copyright (c) 1994 Sun Microsystems, Inc.

pandas/_libs/src/ujson/lib/ultrajsonenc.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Portions of code from MODP_ASCII - Ascii transformations (upper/lower, etc)
3232
Copyright (c) 2007 Nick Galbreath -- nickg [at] modp [dot] com. All rights
3333
reserved.
3434
35-
Numeric decoder derived from from TCL library
35+
Numeric decoder derived from TCL library
3636
https://www.opensource.apple.com/source/tcl/tcl-14/tcl/license.terms
3737
* Copyright (c) 1988-1993 The Regents of the University of California.
3838
* Copyright (c) 1994 Sun Microsystems, Inc.

pandas/_libs/src/ujson/python/JSONtoObj.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Portions of code from MODP_ASCII - Ascii transformations (upper/lower, etc)
2929
https://github.com/client9/stringencoders
3030
Copyright (c) 2007 Nick Galbreath -- nickg [at] modp [dot] com. All rights reserved.
3131
32-
Numeric decoder derived from from TCL library
32+
Numeric decoder derived from TCL library
3333
https://www.opensource.apple.com/source/tcl/tcl-14/tcl/license.terms
3434
* Copyright (c) 1988-1993 The Regents of the University of California.
3535
* Copyright (c) 1994 Sun Microsystems, Inc.

pandas/_libs/src/ujson/python/objToJSON.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Portions of code from MODP_ASCII - Ascii transformations (upper/lower, etc)
3030
Copyright (c) 2007 Nick Galbreath -- nickg [at] modp [dot] com. All rights
3131
reserved.
3232
33-
Numeric decoder derived from from TCL library
33+
Numeric decoder derived from TCL library
3434
https://www.opensource.apple.com/source/tcl/tcl-14/tcl/license.terms
3535
* Copyright (c) 1988-1993 The Regents of the University of California.
3636
* Copyright (c) 1994 Sun Microsystems, Inc.

pandas/_libs/src/ujson/python/ujson.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Portions of code from MODP_ASCII - Ascii transformations (upper/lower, etc)
2929
https://github.com/client9/stringencoders
3030
Copyright (c) 2007 Nick Galbreath -- nickg [at] modp [dot] com. All rights reserved.
3131
32-
Numeric decoder derived from from TCL library
32+
Numeric decoder derived from TCL library
3333
https://www.opensource.apple.com/source/tcl/tcl-14/tcl/license.terms
3434
* Copyright (c) 1988-1993 The Regents of the University of California.
3535
* Copyright (c) 1994 Sun Microsystems, Inc.

pandas/_libs/src/ujson/python/version.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Portions of code from MODP_ASCII - Ascii transformations (upper/lower, etc)
2929
https://github.com/client9/stringencoders
3030
Copyright (c) 2007 Nick Galbreath -- nickg [at] modp [dot] com. All rights reserved.
3131
32-
Numeric decoder derived from from TCL library
32+
Numeric decoder derived from TCL library
3333
https://www.opensource.apple.com/source/tcl/tcl-14/tcl/license.terms
3434
* Copyright (c) 1988-1993 The Regents of the University of California.
3535
* Copyright (c) 1994 Sun Microsystems, Inc.

pandas/core/array_algos/putmask.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
"""
2-
EA-compatible analogue to to np.putmask
2+
EA-compatible analogue to np.putmask
33
"""
44
from __future__ import annotations
55

pandas/core/indexes/multi.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -720,7 +720,7 @@ def _values(self) -> np.ndarray:
720720
if isinstance(vals, ABCDatetimeIndex):
721721
# TODO: this can be removed after Timestamp.freq is removed
722722
# The astype(object) below does not remove the freq from
723-
# the underlying Timestamps so we remove it here to to match
723+
# the underlying Timestamps so we remove it here to match
724724
# the behavior of self._get_level_values
725725
vals = vals.copy()
726726
vals.freq = None

pandas/core/internals/managers.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1892,7 +1892,7 @@ def create_block_manager_from_blocks(
18921892
# If verify_integrity=False, then caller is responsible for checking
18931893
# all(x.shape[-1] == len(axes[1]) for x in blocks)
18941894
# sum(x.shape[0] for x in blocks) == len(axes[0])
1895-
# set(x for for blk in blocks for x in blk.mgr_locs) == set(range(len(axes[0])))
1895+
# set(x for blk in blocks for x in blk.mgr_locs) == set(range(len(axes[0])))
18961896
# all(blk.ndim == 2 for blk in blocks)
18971897
# This allows us to safely pass verify_integrity=False
18981898

pandas/tests/indexes/multi/conftest.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
)
99

1010

11-
# Note: identical the the "multi" entry in the top-level "index" fixture
11+
# Note: identical the "multi" entry in the top-level "index" fixture
1212
@pytest.fixture
1313
def idx():
1414
# a MultiIndex used to test the general functionality of the

pandas/tests/indexing/test_iloc.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1180,7 +1180,7 @@ def test_iloc_getitem_int_single_ea_block_view(self):
11801180
arr = interval_range(1, 10.0)._values
11811181
df = DataFrame(arr)
11821182

1183-
# ser should be a *view* on the the DataFrame data
1183+
# ser should be a *view* on the DataFrame data
11841184
ser = df.iloc[2]
11851185

11861186
# if we have a view, then changing arr[2] should also change ser[0]

pandas/tests/io/formats/style/test_matplotlib.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ def test_background_gradient_gmap_array_raises(gmap, axis):
216216
],
217217
)
218218
def test_background_gradient_gmap_dataframe_align(styler_blank, gmap, subset, exp_gmap):
219-
# test gmap given as DataFrame that it aligns to the the data including subset
219+
# test gmap given as DataFrame that it aligns to the data including subset
220220
expected = styler_blank.background_gradient(axis=None, gmap=exp_gmap, subset=subset)
221221
result = styler_blank.background_gradient(axis=None, gmap=gmap, subset=subset)
222222
assert expected._compute().ctx == result._compute().ctx
@@ -232,7 +232,7 @@ def test_background_gradient_gmap_dataframe_align(styler_blank, gmap, subset, ex
232232
],
233233
)
234234
def test_background_gradient_gmap_series_align(styler_blank, gmap, axis, exp_gmap):
235-
# test gmap given as Series that it aligns to the the data including subset
235+
# test gmap given as Series that it aligns to the data including subset
236236
expected = styler_blank.background_gradient(axis=None, gmap=exp_gmap)._compute()
237237
result = styler_blank.background_gradient(axis=axis, gmap=gmap)._compute()
238238
assert expected.ctx == result.ctx

0 commit comments

Comments
 (0)