Skip to content

Commit e96ec33

Browse files
committed
Merge branch 'master' into enh-masked-2d
2 parents 543258d + 602ab16 commit e96ec33

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+841
-647
lines changed

.pre-commit-config.yaml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,24 @@ repos:
1515
hooks:
1616
- id: codespell
1717
types_or: [python, rst, markdown]
18-
files: ^pandas/
18+
files: ^(pandas|doc)/
1919
exclude: ^pandas/tests/
2020
- repo: https://github.com/pre-commit/pre-commit-hooks
2121
rev: v3.4.0
2222
hooks:
2323
- id: end-of-file-fixer
2424
exclude: \.txt$
2525
- id: trailing-whitespace
26+
- repo: https://github.com/cpplint/cpplint
27+
rev: f7061b1 # the latest tag does not have the hook
28+
hooks:
29+
- id: cpplint
30+
# We don't lint all C files because we don't want to lint any that are built
31+
# from Cython files nor do we want to lint C files that we didn't modify for
32+
# this particular codebase (e.g. src/headers, src/klib). However,
33+
# we can lint all header files since they aren't "generated" like C files are.
34+
exclude: ^pandas/_libs/src/(klib|headers)/
35+
args: [--quiet, '--extensions=c,h', '--headers=h', --recursive, '--filter=-readability/casting,-runtime/int,-build/include_subdir']
2636
- repo: https://gitlab.com/pycqa/flake8
2737
rev: 3.8.4
2838
hooks:

ci/code_checks.sh

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,6 @@ if [[ -z "$CHECK" || "$CHECK" == "lint" ]]; then
5959
# runtime/int: Warnings about using C number types instead of C++ ones
6060
# build/include_subdir: Warnings about prefacing included header files with directory
6161

62-
# We don't lint all C files because we don't want to lint any that are built
63-
# from Cython files nor do we want to lint C files that we didn't modify for
64-
# this particular codebase (e.g. src/headers, src/klib). However,
65-
# we can lint all header files since they aren't "generated" like C files are.
66-
MSG='Linting .c and .h' ; echo $MSG
67-
cpplint --quiet --extensions=c,h --headers=h --recursive --filter=-readability/casting,-runtime/int,-build/include_subdir pandas/_libs/src/*.h pandas/_libs/src/parser pandas/_libs/src/ujson pandas/_libs/tslibs/src/datetime pandas/_libs/*.cpp
68-
RET=$(($RET + $?)) ; echo $MSG "DONE"
69-
7062
fi
7163

7264
### PATTERNS ###

doc/source/development/contributing.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -714,7 +714,7 @@ to run its checks with::
714714

715715
without needing to have done ``pre-commit install`` beforehand.
716716

717-
If you want to run checks on all recently commited files on upstream/master you can use::
717+
If you want to run checks on all recently committed files on upstream/master you can use::
718718

719719
pre-commit run --from-ref=upstream/master --to-ref=HEAD --all-files
720720

doc/source/development/debugging_extensions.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ Now go ahead and execute your script:
6161
6262
run <the_script>.py
6363
64-
Code execution will halt at the breakpoint defined or at the occurance of any segfault. LLDB's `GDB to LLDB command map <https://lldb.llvm.org/use/map.html>`_ provides a listing of debugger command that you can execute using either debugger.
64+
Code execution will halt at the breakpoint defined or at the occurrence of any segfault. LLDB's `GDB to LLDB command map <https://lldb.llvm.org/use/map.html>`_ provides a listing of debugger command that you can execute using either debugger.
6565

6666
Another option to execute the entire test suite under lldb would be to run the following:
6767

doc/source/getting_started/comparison/comparison_with_spreadsheets.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,4 +461,4 @@ pandas' :meth:`~DataFrame.replace` is comparable to Excel's ``Replace All``.
461461

462462
.. ipython:: python
463463
464-
tips.replace("Thur", "Thu")
464+
tips.replace("Thu", "Thursday")

doc/source/getting_started/comparison/comparison_with_sql.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ to your grouped DataFrame, indicating which functions to apply to specific colum
193193
Fri 2.734737 19
194194
Sat 2.993103 87
195195
Sun 3.255132 76
196-
Thur 2.771452 62
196+
Thu 2.771452 62
197197
*/
198198
199199
.. ipython:: python
@@ -213,11 +213,11 @@ Grouping by more than one column is done by passing a list of columns to the
213213
No Fri 4 2.812500
214214
Sat 45 3.102889
215215
Sun 57 3.167895
216-
Thur 45 2.673778
216+
Thu 45 2.673778
217217
Yes Fri 15 2.714000
218218
Sat 42 2.875476
219219
Sun 19 3.516842
220-
Thur 17 3.030000
220+
Thu 17 3.030000
221221
*/
222222
223223
.. ipython:: python

doc/source/getting_started/index.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ Intro to pandas
116116
<div class="card-body">
117117

118118
When working with tabular data, such as data stored in spreadsheets or databases, pandas is the right tool for you. pandas will help you
119-
to explore, clean and process your data. In pandas, a data table is called a :class:`DataFrame`.
119+
to explore, clean, and process your data. In pandas, a data table is called a :class:`DataFrame`.
120120

121121
.. image:: ../_static/schemas/01_table_dataframe.svg
122122
:align: center
@@ -351,7 +351,7 @@ Adding a column to a :class:`DataFrame` based on existing data in other columns
351351
<div class="card-body">
352352

353353
Basic statistics (mean, median, min, max, counts...) are easily calculable. These or custom aggregations can be applied on the entire
354-
data set, a sliding window of the data or grouped by categories. The latter is also known as the split-apply-combine approach.
354+
data set, a sliding window of the data, or grouped by categories. The latter is also known as the split-apply-combine approach.
355355

356356
.. image:: ../_static/schemas/06_groupby.svg
357357
:align: center
@@ -444,7 +444,7 @@ from long to wide format. With aggregations built-in, a pivot table is created w
444444
<div id="collapseEight" class="collapse" data-parent="#accordion">
445445
<div class="card-body">
446446

447-
Multiple tables can be concatenated both column wise as row wise and database-like join/merge operations are provided to combine multiple tables of data.
447+
Multiple tables can be concatenated both column wise and row wise as database-like join/merge operations are provided to combine multiple tables of data.
448448

449449
.. image:: ../_static/schemas/08_concat_row.svg
450450
:align: center
@@ -547,7 +547,7 @@ Data sets do not only contain numerical data. pandas provides a wide range of fu
547547
</span>
548548
<span class="badge gs-badge-link">
549549

550-
:ref:`To user guide <timeseries>`
550+
:ref:`To user guide <text>`
551551

552552
.. raw:: html
553553

doc/source/reference/style.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ Style application
3939
Styler.set_table_styles
4040
Styler.set_table_attributes
4141
Styler.set_tooltips
42-
Styler.set_tooltips_class
4342
Styler.set_caption
4443
Styler.set_properties
4544
Styler.set_uuid

doc/source/user_guide/dsintro.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -869,5 +869,5 @@ completion mechanism so they can be tab-completed:
869869

870870
.. code-block:: ipython
871871
872-
In [5]: df.fo<TAB> # noqa: E225, E999
872+
In [5]: df.foo<TAB> # noqa: E225, E999
873873
df.foo1 df.foo2

doc/source/user_guide/io.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2189,7 +2189,7 @@ into a flat table.
21892189
21902190
data = [
21912191
{"id": 1, "name": {"first": "Coleen", "last": "Volk"}},
2192-
{"name": {"given": "Mose", "family": "Regner"}},
2192+
{"name": {"given": "Mark", "family": "Regner"}},
21932193
{"id": 2, "name": "Faye Raker"},
21942194
]
21952195
pd.json_normalize(data)
@@ -2995,7 +2995,7 @@ For example, below XML contains a namespace with prefix, ``doc``, and URI at
29952995
29962996
Similarly, an XML document can have a default namespace without prefix. Failing
29972997
to assign a temporary prefix will return no nodes and raise a ``ValueError``.
2998-
But assiging *any* temporary name to correct URI allows parsing by nodes.
2998+
But assigning *any* temporary name to correct URI allows parsing by nodes.
29992999

30003000
.. ipython:: python
30013001

0 commit comments

Comments
 (0)