Skip to content

Commit 83fe8d7

Browse files
minho42datapythonista
authored andcommitted
CLN: Fix typos (mainly in docs and comments) (#27007)
1 parent cf74b02 commit 83fe8d7

File tree

99 files changed

+148
-148
lines changed

Some content is hidden

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

99 files changed

+148
-148
lines changed

asv_bench/benchmarks/offset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
pass
1010

1111
hcal = pd.tseries.holiday.USFederalHolidayCalendar()
12-
# These offests currently raise a NotImplimentedError with .apply_index()
12+
# These offsets currently raise a NotImplimentedError with .apply_index()
1313
non_apply = [pd.offsets.Day(),
1414
pd.offsets.BYearEnd(),
1515
pd.offsets.BYearBegin(),

doc/source/getting_started/comparison/comparison_with_sas.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -660,7 +660,7 @@ example, to subtract the mean for each observation by smoker group.
660660
run;
661661
662662
663-
pandas ``groubpy`` provides a ``transform`` mechanism that allows
663+
pandas ``groupby`` provides a ``transform`` mechanism that allows
664664
these type of operations to be succinctly expressed in one
665665
operation.
666666

doc/source/getting_started/comparison/comparison_with_stata.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,7 @@ For example, to subtract the mean for each observation by smoker group.
634634
generate adj_total_bill = total_bill - group_bill
635635
636636
637-
pandas ``groubpy`` provides a ``transform`` mechanism that allows
637+
pandas ``groupby`` provides a ``transform`` mechanism that allows
638638
these type of operations to be succinctly expressed in one
639639
operation.
640640

doc/source/user_guide/io.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -488,7 +488,7 @@ specification:
488488
489489
.. versionadded:: 0.21.0
490490

491-
Specifying ``dtype='cateogry'`` will result in an unordered ``Categorical``
491+
Specifying ``dtype='category'`` will result in an unordered ``Categorical``
492492
whose ``categories`` are the unique values observed in the data. For more
493493
control on the categories and order, create a
494494
:class:`~pandas.api.types.CategoricalDtype` ahead of time, and pass that for
@@ -1679,7 +1679,7 @@ S3 URLs are handled as well but require installing the `S3Fs
16791679
16801680
df = pd.read_csv('s3://pandas-test/tips.csv')
16811681
1682-
If your S3 bucket requires cedentials you will need to set them as environment
1682+
If your S3 bucket requires credentials you will need to set them as environment
16831683
variables or in the ``~/.aws/credentials`` config file, refer to the `S3Fs
16841684
documentation on credentials
16851685
<https://s3fs.readthedocs.io/en/latest/#credentials>`_.
@@ -2078,7 +2078,7 @@ Dates written in nanoseconds need to be read back in nanoseconds:
20782078
20792079
json = dfj2.to_json(date_unit='ns')
20802080
2081-
# Try to parse timestamps as millseconds -> Won't Work
2081+
# Try to parse timestamps as milliseconds -> Won't Work
20822082
dfju = pd.read_json(json, date_unit='ms')
20832083
dfju
20842084

doc/source/user_guide/timeseries.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1133,7 +1133,7 @@ Valid business hours are distinguished by whether it started from valid ``Busine
11331133
pd.Timestamp('2014-08-01 17:00') + bh
11341134
pd.Timestamp('2014-08-01 23:00') + bh
11351135
1136-
# Although 2014-08-02 is Satuaday,
1136+
# Although 2014-08-02 is Saturday,
11371137
# it is valid because it starts from 08-01 (Friday).
11381138
pd.Timestamp('2014-08-02 04:00') + bh
11391139

doc/source/whatsnew/v0.10.1.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ combined result, by using ``where`` on a selector table.
170170
df_mt, selector='df1_mt')
171171
store
172172
173-
# indiviual tables were created
173+
# individual tables were created
174174
store.select('df1_mt')
175175
store.select('df2_mt')
176176

doc/source/whatsnew/v0.14.0.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -816,7 +816,7 @@ Enhancements
816816
- Implemented ``Panel.pct_change`` (:issue:`6904`)
817817
- Added ``how`` option to rolling-moment functions to dictate how to handle resampling; :func:`rolling_max` defaults to max,
818818
:func:`rolling_min` defaults to min, and all others default to mean (:issue:`6297`)
819-
- ``CustomBuisnessMonthBegin`` and ``CustomBusinessMonthEnd`` are now available (:issue:`6866`)
819+
- ``CustomBusinessMonthBegin`` and ``CustomBusinessMonthEnd`` are now available (:issue:`6866`)
820820
- :meth:`Series.quantile` and :meth:`DataFrame.quantile` now accept an array of
821821
quantiles.
822822
- :meth:`~DataFrame.describe` now accepts an array of percentiles to include in the summary statistics (:issue:`4196`)

doc/source/whatsnew/v0.14.1.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ Bug Fixes
247247
- Bug in ``DatetimeIndex`` comparison doesn't handle ``NaT`` properly (:issue:`7529`)
248248
- Bug in passing input with ``tzinfo`` to some offsets ``apply``, ``rollforward`` or ``rollback`` resets ``tzinfo`` or raises ``ValueError`` (:issue:`7465`)
249249
- Bug in ``DatetimeIndex.to_period``, ``PeriodIndex.asobject``, ``PeriodIndex.to_timestamp`` doesn't preserve ``name`` (:issue:`7485`)
250-
- Bug in ``DatetimeIndex.to_period`` and ``PeriodIndex.to_timestanp`` handle ``NaT`` incorrectly (:issue:`7228`)
250+
- Bug in ``DatetimeIndex.to_period`` and ``PeriodIndex.to_timestamp`` handle ``NaT`` incorrectly (:issue:`7228`)
251251
- Bug in ``offsets.apply``, ``rollforward`` and ``rollback`` may return normal ``datetime`` (:issue:`7502`)
252252
- Bug in ``resample`` raises ``ValueError`` when target contains ``NaT`` (:issue:`7227`)
253253
- Bug in ``Timestamp.tz_localize`` resets ``nanosecond`` info (:issue:`7534`)

doc/source/whatsnew/v0.19.0.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1513,7 +1513,7 @@ Bug Fixes
15131513
- Bug in ``Series`` comparison may output incorrect result if rhs contains ``NaT`` (:issue:`9005`)
15141514
- Bug in ``Series`` and ``Index`` comparison may output incorrect result if it contains ``NaT`` with ``object`` dtype (:issue:`13592`)
15151515
- Bug in ``Period`` addition raises ``TypeError`` if ``Period`` is on right hand side (:issue:`13069`)
1516-
- Bug in ``Peirod`` and ``Series`` or ``Index`` comparison raises ``TypeError`` (:issue:`13200`)
1516+
- Bug in ``Period`` and ``Series`` or ``Index`` comparison raises ``TypeError`` (:issue:`13200`)
15171517
- Bug in ``pd.set_eng_float_format()`` that would prevent NaN and Inf from formatting (:issue:`11981`)
15181518
- Bug in ``.unstack`` with ``Categorical`` dtype resets ``.ordered`` to ``True`` (:issue:`13249`)
15191519
- Clean some compile time warnings in datetime parsing (:issue:`13607`)

doc/source/whatsnew/v0.21.0.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ Now, to find prices per store/product, we can simply do:
263263
See the :ref:`documentation <groupby.pipe>` for more.
264264

265265

266-
.. _whatsnew_0210.enhancements.reanme_categories:
266+
.. _whatsnew_0210.enhancements.rename_categories:
267267

268268
``Categorical.rename_categories`` accepts a dict-like
269269
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -418,7 +418,7 @@ New Behavior, without regard to the bottleneck installation:
418418
419419
s.sum()
420420
421-
Note that this also changes the sum of an empty ``Series``. Previously this always returned 0 regardless of a ``bottlenck`` installation:
421+
Note that this also changes the sum of an empty ``Series``. Previously this always returned 0 regardless of a ``bottleneck`` installation:
422422

423423
.. code-block:: ipython
424424

0 commit comments

Comments
 (0)