Compare commits
3 Commits
Author | SHA1 | Date |
---|---|---|
Sergio Pascual | 79df3f0822 | |
Zbigniew Jędrzejewski-Szmek | 5cb9c100c9 | |
Zbigniew Jędrzejewski-Szmek | 72720f4f74 |
|
@ -25,3 +25,5 @@
|
|||
/pandas-0.23.0.tar.gz
|
||||
/pandas-0.23.4.tar.gz
|
||||
/pandas-0.24.1.tar.gz
|
||||
/pandas-0.25.1.tar.gz
|
||||
/pandas-0.25.3.tar.gz
|
||||
|
|
71
26059.patch
71
26059.patch
|
@ -1,71 +0,0 @@
|
|||
From 0ec909fca98ee5854f5865dd782d1aff99492ae6 Mon Sep 17 00:00:00 2001
|
||||
From: Joris Van den Bossche <jorisvandenbossche@gmail.com>
|
||||
Date: Fri, 12 Apr 2019 16:36:54 +0200
|
||||
Subject: [PATCH] DOC: fix See Also constructs (#26059)
|
||||
|
||||
Signed-off-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
|
||||
---
|
||||
pandas/core/groupby/groupby.py | 12 ++++++++----
|
||||
pandas/core/indexes/base.py | 2 --
|
||||
2 files changed, 8 insertions(+), 6 deletions(-)
|
||||
|
||||
diff --git a/pandas/core/groupby/groupby.py b/pandas/core/groupby/groupby.py
|
||||
index 8766fdbc2..0c3eaee8c 100644
|
||||
--- a/pandas/core/groupby/groupby.py
|
||||
+++ b/pandas/core/groupby/groupby.py
|
||||
@@ -1079,7 +1079,8 @@ class GroupBy(_GroupBy):
|
||||
# defined here for API doc
|
||||
raise NotImplementedError
|
||||
|
||||
- @Substitution(name='groupby', see_also=_common_see_also)
|
||||
+ @Substitution(name='groupby')
|
||||
+ @Substitution(see_also=_common_see_also)
|
||||
def mean(self, *args, **kwargs):
|
||||
"""
|
||||
Compute mean of groups, excluding missing values.
|
||||
@@ -1527,7 +1528,8 @@ class GroupBy(_GroupBy):
|
||||
return self._fill('bfill', limit=limit)
|
||||
bfill = backfill
|
||||
|
||||
- @Substitution(name='groupby', see_also=_common_see_also)
|
||||
+ @Substitution(name='groupby')
|
||||
+ @Substitution(see_also=_common_see_also)
|
||||
def nth(self, n, dropna=None):
|
||||
"""
|
||||
Take the nth row from each group if n is an int, or a subset of rows
|
||||
@@ -2036,7 +2038,8 @@ class GroupBy(_GroupBy):
|
||||
shifted = fill_grp.shift(periods=periods, freq=freq)
|
||||
return (filled / shifted) - 1
|
||||
|
||||
- @Substitution(name='groupby', see_also=_common_see_also)
|
||||
+ @Substitution(name='groupby')
|
||||
+ @Substitution(see_also=_common_see_also)
|
||||
def head(self, n=5):
|
||||
"""
|
||||
Returns first n rows of each group.
|
||||
@@ -2064,7 +2067,8 @@ class GroupBy(_GroupBy):
|
||||
mask = self._cumcount_array() < n
|
||||
return self._selected_obj[mask]
|
||||
|
||||
- @Substitution(name='groupby', see_also=_common_see_also)
|
||||
+ @Substitution(name='groupby')
|
||||
+ @Substitution(see_also=_common_see_also)
|
||||
def tail(self, n=5):
|
||||
"""
|
||||
Returns last n rows of each group.
|
||||
diff --git a/pandas/core/indexes/base.py b/pandas/core/indexes/base.py
|
||||
index 2fa034670..4ec2e56d0 100644
|
||||
--- a/pandas/core/indexes/base.py
|
||||
+++ b/pandas/core/indexes/base.py
|
||||
@@ -3623,8 +3623,6 @@ class Index(IndexOpsMixin, PandasObject):
|
||||
--------
|
||||
Index.array : Reference to the underlying data.
|
||||
Index.to_numpy : A NumPy array representing the underlying data.
|
||||
-
|
||||
- Return the underlying data as an ndarray.
|
||||
"""
|
||||
return self._data.view(np.ndarray)
|
||||
|
||||
--
|
||||
2.21.0
|
||||
|
|
@ -2,22 +2,20 @@
|
|||
|
||||
|
||||
Name: python-%{srcname}
|
||||
Version: 0.24.1
|
||||
Release: 4%{?dist}
|
||||
Version: 0.25.3
|
||||
Release: 1%{?dist}
|
||||
Summary: Python library providing high-performance data analysis tools
|
||||
|
||||
License: BSD
|
||||
URL: http://pandas.pydata.org/
|
||||
URL: https://pandas.pydata.org/
|
||||
Source0: https://pypi.io/packages/source/p/pandas/%{srcname}-%{version}.tar.gz
|
||||
# Fix issues with numpydoc 0.9.
|
||||
Patch0001: https://github.com/pandas-dev/pandas/pull/26059.patch
|
||||
|
||||
%global __provides_exclude_from ^(%{python2_sitearch}|%{python3_sitearch})/.*\\.so$
|
||||
|
||||
%description
|
||||
%global _description %{expand:
|
||||
pandas is an open source, BSD-licensed library providing
|
||||
high-performance, easy-to-use data structures and data
|
||||
analysis tools for the Python programming language.
|
||||
analysis tools for the Python programming language.}
|
||||
|
||||
%description %_description
|
||||
|
||||
%package -n python3-%{srcname}
|
||||
Summary: Python library providing high-performance data analysis tools
|
||||
|
@ -43,12 +41,7 @@ Recommends: python3-xlwt
|
|||
|
||||
%{?python_provide:%python_provide python3-%{srcname}}
|
||||
|
||||
%description -n python3-%{srcname}
|
||||
pandas is an open source, BSD-licensed library providing
|
||||
high-performance, easy-to-use data structures and data
|
||||
analysis tools for the Python programming language.
|
||||
|
||||
Python 3 version.
|
||||
%description -n python3-%{srcname} %_description
|
||||
|
||||
%prep
|
||||
%autosetup -n %{srcname}-%{version} -p1
|
||||
|
@ -67,6 +60,12 @@ rm $(grep -rl '/\* Generated by Cython')
|
|||
%{python3_sitearch}/%{srcname}*
|
||||
|
||||
%changelog
|
||||
* Mon Nov 11 2019 Sergio Pascual <sergiopr@fedoraproject.org> - 0.25.3-1
|
||||
- New release of pandas 0.25.3
|
||||
|
||||
* Sat Aug 24 2019 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.25.1-1
|
||||
- Update to latest version
|
||||
|
||||
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.24.1-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
||||
|
||||
|
|
2
sources
2
sources
|
@ -1 +1 @@
|
|||
SHA512 (pandas-0.24.1.tar.gz) = 15f75308f4c437ad0096c3a3d768563b071b3d8e55e1850a5ee0f980f56a9d8d1b9fed9d7707ba43e80052e6c5fea313ac1ad2687935f0ab37a16a68bf64ae19
|
||||
SHA512 (pandas-0.25.3.tar.gz) = ab282e4d3145daafa68d5e3a2e82d692385eb62720d6503ddb3a4f76cf380591cbd32ba3e15fa5ba93725a221d3f74062012ca13a0df8e08c324e706ca35ccf6
|
||||
|
|
Loading…
Reference in New Issue