Skip to content

Commit ea96cde

Browse files
committed
DOC: whatsnew 0.24.0 corrections & edits & remove some warnings
1 parent ca85a41 commit ea96cde

File tree

6 files changed

+257
-168
lines changed

6 files changed

+257
-168
lines changed

doc/source/api.rst

+64-2
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ HDFStore: PyTables (HDF5)
113113
HDFStore.select
114114
HDFStore.info
115115
HDFStore.keys
116+
HDFStore.groups
116117
HDFStore.walk
117118

118119
Feather
@@ -611,6 +612,16 @@ These can be accessed like ``Series.dt.<property>``.
611612
Series.dt.month_name
612613
Series.dt.day_name
613614

615+
**Period Properties**
616+
617+
.. autosummary::
618+
:toctree: generated/
619+
:template: autosummary/accessor_attribute.rst
620+
621+
Series.dt.qyear
622+
Series.dt.start_time
623+
Series.dt.end_time
624+
614625
**Timedelta Properties**
615626

616627
.. autosummary::
@@ -1648,7 +1659,14 @@ Categorical Components
16481659
CategoricalIndex.set_categories
16491660
CategoricalIndex.as_ordered
16501661
CategoricalIndex.as_unordered
1662+
1663+
Modifying and Computations
1664+
~~~~~~~~~~~~~~~~~~~~~~~~~~
1665+
.. autosummary::
1666+
:toctree: generated/
1667+
16511668
CategoricalIndex.map
1669+
CategoricalIndex.equals
16521670

16531671
.. _api.intervalindex:
16541672

@@ -1741,6 +1759,7 @@ MultiIndex Components
17411759
MultiIndex.swaplevel
17421760
MultiIndex.reorder_levels
17431761
MultiIndex.remove_unused_levels
1762+
MultiIndex.reindex
17441763
MultiIndex.unique
17451764

17461765
MultiIndex Selecting
@@ -1750,10 +1769,23 @@ MultiIndex Selecting
17501769
:toctree: generated/
17511770

17521771
MultiIndex.get_loc
1772+
MultiIndex.get_loc_level
17531773
MultiIndex.get_indexer
17541774
MultiIndex.get_level_values
17551775

1756-
.. _api.datetimeindex:
1776+
Modifying and Computations
1777+
~~~~~~~~~~~~~~~~~~~~~~~~~~
1778+
.. autosummary::
1779+
:toctree: generated/
1780+
1781+
MultiIndex.copy
1782+
MultiIndex.drop_duplicates
1783+
MultiIndex.duplicated
1784+
MultiIndex.equals
1785+
MultiIndex.repeat
1786+
MultiIndex.where
1787+
1788+
.. _api.datetimeindex:
17571789

17581790
DatetimeIndex
17591791
-------------
@@ -1834,6 +1866,16 @@ Conversion
18341866
DatetimeIndex.to_pydatetime
18351867
DatetimeIndex.to_series
18361868
DatetimeIndex.to_frame
1869+
DatetimeIndex.shift
1870+
1871+
Sorting
1872+
~~~~~~~
1873+
.. autosummary::
1874+
:toctree: generated/
1875+
1876+
DatetimeIndex.argsort
1877+
DatetimeIndex.searchsorted
1878+
DatetimeIndex.sort_values
18371879

18381880
TimedeltaIndex
18391881
--------------
@@ -1869,6 +1911,15 @@ Conversion
18691911
TimedeltaIndex.ceil
18701912
TimedeltaIndex.to_frame
18711913

1914+
Sorting
1915+
~~~~~~~
1916+
.. autosummary::
1917+
:toctree: generated/
1918+
1919+
TimedeltaIndex.argsort
1920+
TimedeltaIndex.searchsorted
1921+
TimedeltaIndex.sort_values
1922+
18721923
.. currentmodule:: pandas
18731924

18741925
PeriodIndex
@@ -1914,6 +1965,17 @@ Methods
19141965
PeriodIndex.asfreq
19151966
PeriodIndex.strftime
19161967
PeriodIndex.to_timestamp
1968+
PeriodIndex.shift
1969+
PeriodIndex.unique
1970+
1971+
Sorting
1972+
~~~~~~~
1973+
.. autosummary::
1974+
:toctree: generated/
1975+
1976+
PeriodIndex.argsort
1977+
PeriodIndex.searchsorted
1978+
PeriodIndex.sort_values
19171979

19181980
Scalars
19191981
-------
@@ -2292,6 +2354,7 @@ Function application
22922354
:toctree: generated/
22932355

22942356
GroupBy.apply
2357+
GroupBy.agg
22952358
GroupBy.aggregate
22962359
GroupBy.transform
22972360
GroupBy.pipe
@@ -2336,7 +2399,6 @@ application to columns of a specific data type.
23362399
.. autosummary::
23372400
:toctree: generated/
23382401

2339-
DataFrameGroupBy.agg
23402402
DataFrameGroupBy.all
23412403
DataFrameGroupBy.any
23422404
DataFrameGroupBy.bfill

doc/source/basics.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ may involve copying data and coercing values.
8888

8989
Getting the "raw data" inside a :class:`DataFrame` is possibly a bit more
9090
complex. When your ``DataFrame`` only has a single data type for all the
91-
columns, :atr:`DataFrame.to_numpy` will return the underlying data:
91+
columns, :attr:`DataFrame.to_numpy` will return the underlying data:
9292

9393
.. ipython:: python
9494
@@ -1931,7 +1931,7 @@ Categorical :class:`CategoricalDtype` (none) :class:`Categor
19311931
period (time spans) :class:`PeriodDtype` :class:`Period` :class:`arrays.PeriodArray` :ref:`timeseries.periods`
19321932
sparse :class:`SparseDtype` (none) :class:`arrays.SparseArray` :ref:`sparse`
19331933
intervals :class:`IntervalDtype` :class:`Interval` :class:`arrays.IntervalArray` :ref:`advanced.intervalindex`
1934-
nullable integer :clsas:`Int64Dtype`, ... (none) :class:`arrays.IntegerArray` :ref:`integer_na`
1934+
nullable integer :class:`Int64Dtype`, ... (none) :class:`arrays.IntegerArray` :ref:`integer_na`
19351935
=================== ========================= ================== ============================= =============================
19361936

19371937
Pandas uses the ``object`` dtype for storing strings.
@@ -2324,4 +2324,4 @@ All NumPy dtypes are subclasses of ``numpy.generic``:
23242324
.. note::
23252325

23262326
Pandas also defines the types ``category``, and ``datetime64[ns, tz]``, which are not integrated into the normal
2327-
NumPy hierarchy and won't show up with the above function.
2327+
NumPy hierarchy and won't show up with the above function.

doc/source/conf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@
369369

370370
intersphinx_mapping = {
371371
'statsmodels': ('http://www.statsmodels.org/devel/', None),
372-
'matplotlib': ('http://matplotlib.org/', None),
372+
'matplotlib': ('https://matplotlib.org/', None),
373373
'pandas-gbq': ('https://pandas-gbq.readthedocs.io/en/latest/', None),
374374
'python': ('https://docs.python.org/3/', None),
375375
'numpy': ('https://docs.scipy.org/doc/numpy/', None),

doc/source/io.rst

+13-1
Original file line numberDiff line numberDiff line change
@@ -1863,7 +1863,9 @@ Writing to a file, with a date index and a date column:
18631863
dfj2['bools'] = True
18641864
dfj2.index = pd.date_range('20130101', periods=5)
18651865
dfj2.to_json('test.json')
1866-
open('test.json').read()
1866+
1867+
with open('test.json') as fh:
1868+
print(fh.read())
18671869
18681870
Fallback Behavior
18691871
+++++++++++++++++
@@ -2321,6 +2323,11 @@ indicate missing values and the subsequent read cannot distinguish the intent.
23212323
new_df = pd.read_json('test.json', orient='table')
23222324
print(new_df.index.name)
23232325
2326+
.. ipython:: python
2327+
:suppress:
2328+
2329+
os.remove('test.json')
2330+
23242331
.. _Table Schema: https://specs.frictionlessdata.io/json-table-schema/
23252332

23262333
HTML
@@ -4766,6 +4773,11 @@ this file into a ``DataFrame``.
47664773
Passing ``index=True`` will *always* write the index, even if that's not the
47674774
underlying engine's default behavior.
47684775

4776+
.. ipython:: python
4777+
:suppress:
4778+
4779+
os.remove('test.parquet')
4780+
47694781
47704782
Partitioning Parquet files
47714783
''''''''''''''''''''''''''

0 commit comments

Comments
 (0)