Skip to content

CI: unpin numpy and matplotlib #35779 #35780

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Aug 19, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions doc/source/user_guide/visualization.rst
Original file line number Diff line number Diff line change
Expand Up @@ -668,6 +668,7 @@ A ``ValueError`` will be raised if there are any negative values in your data.
plt.figure()

.. ipython:: python
:okwarning:

series = pd.Series(3 * np.random.rand(4),
index=['a', 'b', 'c', 'd'], name='series')
Expand Down Expand Up @@ -742,6 +743,7 @@ If you pass values whose sum total is less than 1.0, matplotlib draws a semicirc
plt.figure()

.. ipython:: python
:okwarning:

series = pd.Series([0.1] * 4, index=['a', 'b', 'c', 'd'], name='series2')

Expand Down
5 changes: 2 additions & 3 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ channels:
- conda-forge
dependencies:
# required
# Pin numpy<1.19 until MPL 3.3.0 is released.
- numpy>=1.16.5,<1.19.0
- numpy>=1.16.5
- python=3
- python-dateutil>=2.7.3
- pytz
Expand Down Expand Up @@ -73,7 +72,7 @@ dependencies:
- ipykernel
- ipython>=7.11.1
- jinja2 # pandas.Styler
- matplotlib>=2.2.2,<3.3.0 # pandas.plotting, Series.plot, DataFrame.plot
- matplotlib>=2.2.2 # pandas.plotting, Series.plot, DataFrame.plot
- numexpr>=2.6.8
- scipy>=1.2
- numba>=0.46.0
Expand Down
2 changes: 1 addition & 1 deletion pandas/core/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -2600,7 +2600,7 @@ def to_html(
1 column_2 1000000 non-null object
2 column_3 1000000 non-null object
dtypes: object(3)
memory usage: 188.8 MB"""
memory usage: 165.9 MB"""
),
see_also_sub=(
"""
Expand Down
2 changes: 1 addition & 1 deletion pandas/core/series.py
Original file line number Diff line number Diff line change
Expand Up @@ -4637,7 +4637,7 @@ def memory_usage(self, index=True, deep=False):
>>> s.memory_usage()
144
>>> s.memory_usage(deep=True)
260
244
"""
v = super().memory_usage(deep=deep)
if index:
Expand Down
2 changes: 1 addition & 1 deletion pandas/plotting/_matplotlib/boxplot.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ def maybe_color_bp(bp, **kwds):

def plot_group(keys, values, ax):
keys = [pprint_thing(x) for x in keys]
values = [np.asarray(remove_na_arraylike(v)) for v in values]
values = [np.asarray(remove_na_arraylike(v), dtype=object) for v in values]
bp = ax.boxplot(values, **kwds)
if fontsize is not None:
ax.tick_params(axis="both", labelsize=fontsize)
Expand Down
4 changes: 2 additions & 2 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This file is auto-generated from environment.yml, do not modify.
# See that file for comments about the need/usage of each dependency.

numpy>=1.16.5,<1.19.0
numpy>=1.16.5
python-dateutil>=2.7.3
pytz
asv
Expand Down Expand Up @@ -47,7 +47,7 @@ bottleneck>=1.2.1
ipykernel
ipython>=7.11.1
jinja2
matplotlib>=2.2.2,<3.3.0
matplotlib>=2.2.2
numexpr>=2.6.8
scipy>=1.2
numba>=0.46.0
Expand Down