File tree 3 files changed +3
-5
lines changed
3 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -262,7 +262,6 @@ Visualization
262
262
========================= ================== =============================================================
263
263
Dependency Minimum Version Notes
264
264
========================= ================== =============================================================
265
- setuptools 38.6.0 Utils for entry points of plotting backend
266
265
matplotlib 3.3.2 Plotting library
267
266
Jinja2 2.11 Conditional formatting with DataFrame.style
268
267
tabulate 0.8.7 Printing in Markdown-friendly format (see `tabulate `_)
Original file line number Diff line number Diff line change @@ -82,8 +82,6 @@ If installed, we now require:
82
82
+-----------------+-----------------+----------+---------+
83
83
| mypy (dev) | 0.910 | | X |
84
84
+-----------------+-----------------+----------+---------+
85
- | setuptools | 38.6.0 | | |
86
- +-----------------+-----------------+----------+---------+
87
85
88
86
For `optional libraries <https://pandas.pydata.org/docs/getting_started/install.html >`_ the general recommendation is to use the latest version.
89
87
The following table lists the lowest version per library that is currently being tested throughout the development of pandas.
Original file line number Diff line number Diff line change @@ -1743,7 +1743,7 @@ def _load_backend(backend: str) -> types.ModuleType:
1743
1743
types.ModuleType
1744
1744
The imported backend.
1745
1745
"""
1746
- import pkg_resources
1746
+ from importlib . metadata import entry_points
1747
1747
1748
1748
if backend == "matplotlib" :
1749
1749
# Because matplotlib is an optional dependency and first-party backend,
@@ -1759,7 +1759,8 @@ def _load_backend(backend: str) -> types.ModuleType:
1759
1759
1760
1760
found_backend = False
1761
1761
1762
- for entry_point in pkg_resources .iter_entry_points ("pandas_plotting_backends" ):
1762
+ eps = entry_points ()
1763
+ for entry_point in eps .get ("pandas_plotting_backends" ):
1763
1764
found_backend = entry_point .name == backend
1764
1765
if found_backend :
1765
1766
module = entry_point .load ()
You can’t perform that action at this time.
0 commit comments