Skip to content

Commit 208bb41

Browse files
pjbullWillAyd
authored andcommitted
DOC: Add pandas_path to the accesor list in the documentation (#30898)
1 parent a8eaebf commit 208bb41

File tree

1 file changed

+20
-6
lines changed

1 file changed

+20
-6
lines changed

doc/source/ecosystem.rst

+20-6
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,16 @@ Pyjanitor provides a clean API for cleaning data, using method chaining.
4141
Engarde is a lightweight library used to explicitly state assumptions about your datasets
4242
and check that they're *actually* true.
4343

44+
`pandas-path <https://github.com/drivendataorg/pandas-path/>`__
45+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
46+
47+
Since Python 3.4, `pathlib <https://docs.python.org/3/library/pathlib.html>`_ has been
48+
included in the Python standard library. Path objects provide a simple
49+
and delightful way to interact with the file system. The pandas-path package enables the
50+
Path API for pandas through a custom accessor ``.path``. Getting just the filenames from
51+
a series of full file paths is as simple as ``my_files.path.name``. Other convenient operations like
52+
joining paths, replacing file extensions, and checking if files exist are also available.
53+
4454
.. _ecosystem.stats:
4555

4656
Statistics and machine learning
@@ -386,12 +396,16 @@ A directory of projects providing
386396
:ref:`extension accessors <extending.register-accessors>`. This is for users to
387397
discover new accessors and for library authors to coordinate on the namespace.
388398

389-
============== ========== =========================
390-
Library Accessor Classes
391-
============== ========== =========================
392-
`cyberpandas`_ ``ip`` ``Series``
393-
`pdvega`_ ``vgplot`` ``Series``, ``DataFrame``
394-
============== ========== =========================
399+
=============== ========== ========================= ===============================================================
400+
Library Accessor Classes Description
401+
=============== ========== ========================= ===============================================================
402+
`cyberpandas`_ ``ip`` ``Series`` Provides common operations for working with IP addresses.
403+
`pdvega`_ ``vgplot`` ``Series``, ``DataFrame`` Provides plotting functions from the Altair_ library.
404+
`pandas_path`_ ``path`` ``Index``, ``Series`` Provides `pathlib.Path`_ functions for Series.
405+
=============== ========== ========================= ===============================================================
395406

396407
.. _cyberpandas: https://cyberpandas.readthedocs.io/en/latest
397408
.. _pdvega: https://altair-viz.github.io/pdvega/
409+
.. _Altair: https://altair-viz.github.io/
410+
.. _pandas_path: https://github.com/drivendataorg/pandas-path/
411+
.. _pathlib.Path: https://docs.python.org/3/library/pathlib.html

0 commit comments

Comments
 (0)