Skip to content

Commit a5c4a18

Browse files
jrebackPingviinituutti
authored andcommitted
DOC: whatsnew 0.24.0 corrections & edits & remove some warnings (pandas-dev#24298)
* DOC: whatsnew 0.24.0 corrections & edits & remove some warnings * review * revert api refernces * typos
1 parent a27f494 commit a5c4a18

File tree

6 files changed

+216
-171
lines changed

6 files changed

+216
-171
lines changed

doc/source/api.rst

+20-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,7 +1759,6 @@ MultiIndex Components
17411759
MultiIndex.swaplevel
17421760
MultiIndex.reorder_levels
17431761
MultiIndex.remove_unused_levels
1744-
MultiIndex.unique
17451762

17461763
MultiIndex Selecting
17471764
~~~~~~~~~~~~~~~~~~~~
@@ -1750,6 +1767,7 @@ MultiIndex Selecting
17501767
:toctree: generated/
17511768

17521769
MultiIndex.get_loc
1770+
MultiIndex.get_loc_level
17531771
MultiIndex.get_indexer
17541772
MultiIndex.get_level_values
17551773

@@ -2292,6 +2310,7 @@ Function application
22922310
:toctree: generated/
22932311

22942312
GroupBy.apply
2313+
GroupBy.agg
22952314
GroupBy.aggregate
22962315
GroupBy.transform
22972316
GroupBy.pipe
@@ -2336,7 +2355,6 @@ application to columns of a specific data type.
23362355
.. autosummary::
23372356
:toctree: generated/
23382357

2339-
DataFrameGroupBy.agg
23402358
DataFrameGroupBy.all
23412359
DataFrameGroupBy.any
23422360
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)