Skip to content

Commit ec0996c

Browse files
authored
GH31391 - Fixed typos and fixed inexistant path in a SAS class comment (#31395)
1 parent 3dc59d4 commit ec0996c

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

asv_bench/benchmarks/io/sas.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ class SAS:
99
param_names = ["format"]
1010

1111
def setup(self, format):
12-
# Read files that are located in 'pandas/io/tests/sas/data'
12+
# Read files that are located in 'pandas/tests/io/sas/data'
1313
files = {"sas7bdat": "test1.sas7bdat", "xport": "paxraw_d_short.xpt"}
1414
file = files[format]
1515
paths = [

doc/source/whatsnew/v0.13.0.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ These were announced changes in 0.12 or prior that are taking effect as of 0.13.
214214
- Remove deprecated ``read_clipboard/to_clipboard/ExcelFile/ExcelWriter`` from ``pandas.io.parsers`` (:issue:`3717`)
215215
These are available as functions in the main pandas namespace (e.g. ``pd.read_clipboard``)
216216
- default for ``tupleize_cols`` is now ``False`` for both ``to_csv`` and ``read_csv``. Fair warning in 0.12 (:issue:`3604`)
217-
- default for `display.max_seq_len` is now 100 rather then `None`. This activates
217+
- default for `display.max_seq_len` is now 100 rather than `None`. This activates
218218
truncated display ("...") of long sequences in various places. (:issue:`3391`)
219219

220220
Deprecations

pandas/core/config_init.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
module is imported, which may or may not be a problem.
77
88
If you need to make sure options are available even before a certain
9-
module is imported, register them here rather then in the module.
9+
module is imported, register them here rather than in the module.
1010
1111
"""
1212
import pandas._config.config as cf

pandas/io/formats/printing.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def justify(texts: Iterable[str], max_len: int, mode: str = "right") -> List[str
7474
#
7575
# pprinting utility functions for generating Unicode text or
7676
# bytes(3.x)/str(2.x) representations of objects.
77-
# Try to use these as much as possible rather then rolling your own.
77+
# Try to use these as much as possible rather than rolling your own.
7878
#
7979
# When to use
8080
# -----------
@@ -98,7 +98,7 @@ def _pprint_seq(
9898
) -> str:
9999
"""
100100
internal. pprinter for iterables. you should probably use pprint_thing()
101-
rather then calling this directly.
101+
rather than calling this directly.
102102
103103
bounds length of printed sequence, depending on options
104104
"""
@@ -133,7 +133,7 @@ def _pprint_dict(
133133
) -> str:
134134
"""
135135
internal. pprinter for iterables. you should probably use pprint_thing()
136-
rather then calling this directly.
136+
rather than calling this directly.
137137
"""
138138
fmt = "{{{things}}}"
139139
pairs = []

pandas/tests/groupby/test_grouping.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ def test_groupby_grouper_f_sanity_checked(self):
388388
# if it fails on the elements, map tries it on the entire index as
389389
# a sequence. That can yield invalid results that cause trouble
390390
# down the line.
391-
# the surprise comes from using key[0:6] rather then str(key)[0:6]
391+
# the surprise comes from using key[0:6] rather than str(key)[0:6]
392392
# when the elements are Timestamp.
393393
# the result is Index[0:6], very confusing.
394394

pandas/tests/io/formats/test_format.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ def test_repr_set(self):
296296
assert printing.pprint_thing({1}) == "{1}"
297297

298298
def test_repr_is_valid_construction_code(self):
299-
# for the case of Index, where the repr is traditional rather then
299+
# for the case of Index, where the repr is traditional rather than
300300
# stylized
301301
idx = Index(["a", "b"])
302302
res = eval("pd." + repr(idx))

0 commit comments

Comments
 (0)