Skip to content

Commit

Permalink
CI: Unpin NumPy (pandas-dev#23465)
Browse files Browse the repository at this point in the history
  • Loading branch information
TomAugspurger authored and JustinZhengBC committed Nov 14, 2018
1 parent 53dad83 commit 510ba4e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion ci/travis-37-numpydev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ dependencies:
- "git+git://github.com/dateutil/dateutil.git"
- "-f https://7933911d6844c6c53a7d-47bd50c35cd79bd838daf386af554a83.ssl.cf2.rackcdn.com"
- "--pre"
- "numpy<=1.16.0.dev0+20181015190246"
- "numpy"
- "scipy"
7 changes: 5 additions & 2 deletions pandas/core/groupby/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,9 @@ def first_not_none(values):
if (isinstance(v.index, MultiIndex) or
key_index is None or
isinstance(key_index, MultiIndex)):
stacked_values = np.vstack(map(np.asarray, values))
stacked_values = np.vstack([
np.asarray(v) for v in values
])
result = DataFrame(stacked_values, index=key_index,
columns=index)
else:
Expand All @@ -422,7 +424,8 @@ def first_not_none(values):
axis=self.axis).unstack()
result.columns = index
else:
stacked_values = np.vstack(map(np.asarray, values))
stacked_values = np.vstack([np.asarray(v)
for v in values])
result = DataFrame(stacked_values.T, index=v.index,
columns=key_index)

Expand Down
6 changes: 4 additions & 2 deletions pandas/util/_test_decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,10 @@ def _skip_if_not_us_locale():


def _skip_if_no_scipy():
return not (safe_import('scipy.stats') and safe_import('scipy.sparse') and
safe_import('scipy.interpolate'))
return not (safe_import('scipy.stats') and
safe_import('scipy.sparse') and
safe_import('scipy.interpolate') and
safe_import('scipy.signal'))


def _skip_if_no_lzma():
Expand Down

0 comments on commit 510ba4e

Please sign in to comment.