diff --git a/README.md b/README.md index 38f4afb3e2f22..9f2bc800e8479 100644 --- a/README.md +++ b/README.md @@ -90,7 +90,7 @@ Package Index (PyPI)](https://pypi.org/project/pandas) and on [Conda](https://do ```sh # conda -conda install pandas +conda install -c conda-forge pandas ``` ```sh @@ -98,6 +98,10 @@ conda install pandas pip install pandas ``` +The list of changes to pandas between each release can be found +[here](https://pandas.pydata.org/pandas-docs/stable/whatsnew/index.html). For full +details, see the commit logs at https://github.com/pandas-dev/pandas. + ## Dependencies - [NumPy - Adds support for large, multi-dimensional arrays, matrices and high-level mathematical functions to operate on these arrays](https://www.numpy.org) - [python-dateutil - Provides powerful extensions to the standard datetime module](https://dateutil.readthedocs.io/en/stable/index.html) diff --git a/RELEASE.md b/RELEASE.md deleted file mode 100644 index 344a097a3e81e..0000000000000 --- a/RELEASE.md +++ /dev/null @@ -1,6 +0,0 @@ -Release Notes -============= - -The list of changes to pandas between each release can be found -[here](https://pandas.pydata.org/pandas-docs/stable/whatsnew/index.html). For full -details, see the commit logs at https://github.com/pandas-dev/pandas. diff --git a/pandas/tests/arrays/sparse/test_accessor.py b/pandas/tests/arrays/sparse/test_accessor.py index 3edece71d1d2a..ff5fc63318c38 100644 --- a/pandas/tests/arrays/sparse/test_accessor.py +++ b/pandas/tests/arrays/sparse/test_accessor.py @@ -29,16 +29,14 @@ def test_get_attributes(self, attr): expected = getattr(arr, attr) assert result == expected - @td.skip_if_no_scipy def test_from_coo(self): - import scipy.sparse + scipy_sparse = pytest.importorskip("scipy.sparse") row = [0, 3, 1, 0] col = [0, 3, 1, 2] data = [4, 5, 7, 9] - # TODO(scipy#13585): Remove dtype when scipy is fixed - # https://github.com/scipy/scipy/issues/13585 - sp_array = scipy.sparse.coo_matrix((data, (row, col)), dtype="int") + + sp_array = scipy_sparse.coo_matrix((data, (row, col))) result = pd.Series.sparse.from_coo(sp_array) index = pd.MultiIndex.from_arrays( diff --git a/scripts/list_future_warnings.sh b/scripts/list_future_warnings.sh deleted file mode 100755 index a75aea905a4c8..0000000000000 --- a/scripts/list_future_warnings.sh +++ /dev/null @@ -1,46 +0,0 @@ -#!/bin/bash - -# Check all future warnings in Python files, and report them with the version -# where the FutureWarning was added. -# -# This is useful to detect features that have been deprecated, and should be -# removed from the code. For example, if a line of code contains: -# -# warning.warn('Method deprecated', FutureWarning, stacklevel=find_stack_level()) -# -# Which is released in Pandas 0.20.0, then it is expected that the method -# is removed before releasing Pandas 0.24.0, including the warning. If it -# is not, this script will list this line, with the version 0.20.0, which -# will make it easy to detect that it had to be removed. -# -# In some cases this script can return false positives, for example in files -# where FutureWarning is used to detect deprecations, or similar. The EXCLUDE -# variable can be used to ignore files that use FutureWarning, but do not -# deprecate functionality. -# -# Usage: -# -# $ ./list_future_warnings.sh - -EXCLUDE="^pandas/tests/|" # tests validate that FutureWarnings are raised -EXCLUDE+="^pandas/util/_decorators.py$|" # generic deprecate function that raises warning -EXCLUDE+="^pandas/util/_depr_module.py$|" # generic deprecate module that raises warnings -EXCLUDE+="^pandas._testing.py$|" # contains function to evaluate if warning is raised -EXCLUDE+="^pandas/io/parsers.py$" # implements generic deprecation system in io reading - -BASE_DIR="$(dirname $0)/.." -cd $BASE_DIR -FILES=`grep -RIl "FutureWarning" pandas/* | grep -vE "$EXCLUDE"` -OUTPUT=() -IFS=$'\n' - -for FILE in $FILES; do - FILE_LINES=`git blame -sf $FILE | grep FutureWarning | tr -s " " | cut -d " " -f1,3` - for FILE_LINE in $FILE_LINES; do - TAG=$(git tag --contains $(echo $FILE_LINE | cut -d" " -f1) | head -n1) - OUTPUT_ROW=`printf "%-14s %-16s %s" ${TAG:-"(not released)"} $FILE_LINE $FILE` - OUTPUT+=($OUTPUT_ROW) - done -done - -printf "%s\n" "${OUTPUT[@]}" | sort -V