Skip to content

0.21.1 backports (round 1) #18697

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 85 commits into from
Dec 11, 2017
Merged
Show file tree
Hide file tree
Changes from 84 commits
Commits
Show all changes
85 commits
Select commit Hold shift + click to select a range
6a4567e
Added applying of multiple columns to resample (#17950)
discort Oct 27, 2017
ba36a14
COMPAT: Update for NumPy dev (#17987)
TomAugspurger Oct 27, 2017
5c23ef4
Add timestamp method+test; closes #17329 (#17906)
jbrockmendel Oct 27, 2017
679d3b9
BUG: Fix memory access violations in is_lexsorted (#18005)
cgohlke Oct 28, 2017
aa5ddb3
ERR: Fix segfault with .astype('category') on empty DataFrame (#18015)
jschendel Oct 29, 2017
6912d25
BUG: Fix parsing of stata dates (#17797) (#17990)
miker985 Oct 31, 2017
6d7d5ee
Update Contributing Environment section (#18052)
TomAugspurger Nov 2, 2017
992b0f9
MAINT: Remove np.array_equal calls in tests (#18047)
gfyoung Nov 2, 2017
e2c596d
COMPAT: compare platform return on 32-bit (#18090)
jreback Nov 3, 2017
c820699
Fix 18068: Updates merge_asof error, now outputs datatypes (#18082)
manrajgrover Nov 3, 2017
877917b
BUG: Fix the error when reading the compressed UTF-16 file (#18091)
Licht-T Nov 4, 2017
0d82dfb
DOC: Remove duplicate 'in' from contributing.rst (#18040) (#18076)
mattayes Nov 2, 2017
1921636
BUG: Override mi-columns in to_csv if requested (#18110)
gfyoung Nov 5, 2017
0b94cea
Let CategoricalIndex take CategoricalDtype as dtype (#18116)
topper-123 Nov 5, 2017
357a7b3
DOC: Remove stray '}' in frame.py docs (#18131)
Nov 6, 2017
4475176
TST: Add another test for segfault in C engine (#18128)
gfyoung Nov 6, 2017
08a7181
improve test output for Categoricals (#18069)
topper-123 Nov 2, 2017
91639e5
BUG: Don't parse NA-values in index when requested (#18127)
gfyoung Nov 6, 2017
db63a39
TST: Check lossiness of floats with parse_dates (#18136)
gfyoung Nov 6, 2017
0b57dd8
BUG:fix rolling skew kurt floating issue (#18065)
zartbot Nov 8, 2017
62ca3d9
Modernize indexes.timedeltas, indexes.datetimeindex (#18161)
jbrockmendel Nov 8, 2017
f7d0b9f
restrict columns to read for pandas.read_parquet (#18155)
hoffmann Nov 8, 2017
c03a387
CI: don't show miniconda output on install / numpy 1.14 compat (#18157)
jreback Nov 8, 2017
b0bda40
Fix groupby().count() for datetimelike columns (#18167)
watercrossing Nov 8, 2017
adfdb89
Add requirement for a 1-dimensional ndarray in the `pd.qcut` docstrin…
jdoepfert Nov 10, 2017
de4be1f
Fix for #18178 and #18187 by changing the concat of empty RangeIndex…
SmokinCaterpillar Nov 10, 2017
b22356a
COMPAT: re-enable dateutil install from master (#18172)
jreback Nov 10, 2017
4df0d2a
ENH: improve 'incompatible tolerance' error message in merge_asof (#1…
leifwalsh Nov 10, 2017
7da16e3
DOC: clarfiy sum of empty Series case + matplotlib registering in 0.2…
jorisvandenbossche Nov 11, 2017
8ea84a8
TST: clean up some tests issues & style (#18232)
jreback Nov 11, 2017
0216706
CI: slightly more robust xfvb starting (#18239)
jreback Nov 12, 2017
631333f
BUG: MultiIndex not raising AttributeError with a million records (#1…
WillAyd Nov 12, 2017
b9ed3a2
TST: xfail dateutil > 2.6.1 tests (#18240)
jreback Nov 12, 2017
6427bed
DOC: add docstring for MultiIndex.fillna (#18018) (#18269)
ghasemnaddaf Nov 13, 2017
6ba8cd1
DOC: updated (Series/DataFrame).combine_first doc strings (#18266)
topper-123 Nov 14, 2017
de7b142
Revert "CI: temp disable scipy on windows 3.6 build (#18078)" (#18105)
jreback Nov 4, 2017
754ec08
updated (Series/DataFrame).combine doc strings (#18268)
topper-123 Nov 14, 2017
ea94667
Fix #17965 to allow full comparison of datetimelike objects (#18188)
watercrossing Nov 14, 2017
b6f536f
ENH: Pass kwargs from read_parquet() to the underlying engines. (#18216)
Nov 14, 2017
89b3c91
DOC: clarify idxmax behaviour issue #18206 (#18209)
ghasemnaddaf Nov 14, 2017
4df8ee2
DOC: Fix "drop=True" reset_index() reference in Feather and Parquet I…
mattayes Nov 14, 2017
9d53574
DOC: ecosystem: dask-ml (#18317)
westurner Nov 16, 2017
3a109ea
TST: add downstream deps in 3.6 build (#18333)
jreback Nov 17, 2017
3b802bd
CI: remove pandas-gbqg (#18343)
jreback Nov 17, 2017
e96375d
TST: don't skip statsmodels tests on network builds (#18362)
jreback Nov 19, 2017
3a1eeef
PERF: improve plotting performance by not stringifying all x data (#1…
jorisvandenbossche Nov 20, 2017
57c24a3
!I fix for BUG: resample with tz-aware: Values falls after last bin #…
ahcub Nov 21, 2017
5ab9595
DOC: clean up whatsnew 0.21.1 (#18408)
jreback Nov 21, 2017
b46e96d
BUG: Fix filter method so that accepts byte and unicode column names …
Licht-T Nov 22, 2017
b33bf4a
STYLE: fix flake8=3.4.1 (#18418)
jreback Nov 22, 2017
3113f40
Read csv category fix (#18402)
Nov 22, 2017
542533a
DOC: add whatsnew for #17882 (#18433)
jorisvandenbossche Nov 22, 2017
be26b7e
BUG: formating integers datetimes using sql GH17855 (#17882)
drorata Nov 22, 2017
ea264b5
Numpy bool msgpack bugfix (#18395)
PhyNerd Nov 23, 2017
7f9dac8
[BUG-FIX] DataFrame created with tzinfo cannot use to_dict(orient="re…
bolkedebruin Nov 23, 2017
5aca87d
BUG: Copy categorical codes if empty (fixes #18051) (#18436)
topper-123 Nov 23, 2017
de9a7f0
BUG: Fix Index.putmask makes stack overflow with an invalid mask (#18…
Licht-T Nov 25, 2017
cbe24b6
BUG: Fix inaccurate rolling.var calculation (#18481)
Licht-T Nov 25, 2017
7a72e3e
Propogating NaN values when using str.split (#18450) (#18462)
WillAyd Nov 25, 2017
e530347
CI: remove pandas-gbq from 3.5 build to avoid conflicts with 3.6 buil…
jreback Nov 26, 2017
237ed87
Fix tzaware dates mismatch but no exception raised (#18488)
aschade Nov 26, 2017
94121f9
TST: move gbq back to 3.5 build and remove from BUILD_TEST (#18506)
jreback Nov 26, 2017
80efa3e
COMPAT: reading json with lines=True from s3, xref #17200 (#17201)
Nov 27, 2017
792c868
BUG: Ignore division by 0 when merging empty dataframes (#17776) (#17…
yeemey Nov 27, 2017
92dc7a0
Added repr string for Grouper and TimeGrouper (#18203)
topper-123 Nov 27, 2017
75a3802
improved DataFrame/SeriesGroupBy.apply doc string (#18534)
topper-123 Nov 28, 2017
5348c6e
DOC: clarify default window in rolling method (#18177)
dstansby Nov 30, 2017
68fd85b
BUG: Fix groupby over a CategoricalIndex in axis=1 (#18525)
ekisslinger Nov 30, 2017
309c9c1
Update pandas.read_gbq docs to point to pandas-gbq (#18548)
tswast Dec 1, 2017
aa87876
DOC: header='infer' is not working when there is no header, closes #1…
cmazzullo Nov 30, 2017
17cfc2d
BUG: Unwanted conversion from timedelta to float (#18493) (#18586)
fjdiod Dec 2, 2017
53e0c93
DOC: Remove keep=False docs on nlargest/nsmallest (#18617)
AaronCritchley Dec 4, 2017
01dd5a7
json_normalize: Make code more pythonic and avoid modification of met…
davidfischer-ch Dec 4, 2017
02eac02
BUG: Fix IntervalIndex constructor and copy with non-default closed (…
jschendel Nov 20, 2017
9291ba3
BUG: Fix the un-pickleable plot with DatetimeIndex (#18486)
Licht-T Dec 6, 2017
0cc9377
DOC: Give python3 precedence over py2 in the install notes (#18603)
topper-123 Dec 6, 2017
f5fb09e
DOC: temporary remove pyarrow example of reading subset columns (#18661)
jorisvandenbossche Dec 7, 2017
2d1b85a
API: Restore implicit converter registration (#18307)
TomAugspurger Dec 7, 2017
469813d
DOC: explain the `mode.chained_assignment` option (#18635)
sietse Dec 7, 2017
11a4100
Documentation fix for method last_valid_index (#18681)
gabrielclow Dec 8, 2017
2524ff4
BUG: LatexFormatter.write_result multi-index (#18685)
gfyoung Dec 8, 2017
966c80a
TST: xfail unrelaible parallel coordinates sorted label test (#18688)
jreback Dec 8, 2017
e1b4c05
Improved description of seaborn (#18495)
mwaskom Nov 26, 2017
9e36f21
CLN: pep8 error
TomAugspurger Dec 8, 2017
24e6fa8
Fix merge error
TomAugspurger Dec 9, 2017
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
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,6 @@ before_install:
- uname -a
- git --version
- git tag
- ci/before_install_travis.sh
- export DISPLAY=":99.0"

install:
- echo "install start"
Expand All @@ -114,6 +112,8 @@ install:

before_script:
- ci/install_db_travis.sh
- export DISPLAY=":99.0"
- ci/before_script_travis.sh

script:
- echo "script start"
Expand Down
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ environment:
PYTHON_VERSION: "3.6"
PYTHON_ARCH: "64"
CONDA_PY: "36"
CONDA_NPY: "112"
CONDA_NPY: "113"

- CONDA_ROOT: "C:\\Miniconda3_64"
PYTHON_VERSION: "2.7"
Expand Down
31 changes: 28 additions & 3 deletions asv_bench/benchmarks/plotting.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,47 @@ def date_range(start=None, end=None, periods=None, freq=None):
from pandas.tools.plotting import andrews_curves


class Plotting(object):
goal_time = 0.2

def setup(self):
import matplotlib
matplotlib.use('Agg')
self.s = Series(np.random.randn(1000000))
self.df = DataFrame({'col': self.s})

def time_series_plot(self):
self.s.plot()

def time_frame_plot(self):
self.df.plot()


class TimeseriesPlotting(object):
goal_time = 0.2

def setup(self):
import matplotlib
matplotlib.use('Agg')
self.N = 2000
self.M = 5
self.df = DataFrame(np.random.randn(self.N, self.M), index=date_range('1/1/1975', periods=self.N))
N = 2000
M = 5
idx = date_range('1/1/1975', periods=N)
self.df = DataFrame(np.random.randn(N, M), index=idx)

idx_irregular = pd.DatetimeIndex(np.concatenate((idx.values[0:10],
idx.values[12:])))
self.df2 = DataFrame(np.random.randn(len(idx_irregular), M),
index=idx_irregular)

def time_plot_regular(self):
self.df.plot()

def time_plot_regular_compat(self):
self.df.plot(x_compat=True)

def time_plot_irregular(self):
self.df2.plot()


class Misc(object):
goal_time = 0.6
Expand Down
1 change: 1 addition & 0 deletions ci/before_install_travis.sh → ci/before_script_travis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ echo "inside $0"

if [ "${TRAVIS_OS_NAME}" == "linux" ]; then
sh -e /etc/init.d/xvfb start
sleep 3
fi

# Never fail because bad things happened here.
Expand Down
1 change: 0 additions & 1 deletion ci/check_imports.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
'ipython',
'jinja2'
'lxml',
'matplotlib',
'numexpr',
'openpyxl',
'py',
Expand Down
14 changes: 14 additions & 0 deletions ci/environment-dev.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: pandas-dev
channels:
- defaults
- conda-forge
dependencies:
- Cython
- NumPy
- moto
- pytest
- python-dateutil
- python=3
- pytz
- setuptools
- sphinx
6 changes: 3 additions & 3 deletions ci/install_travis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ fi

# install miniconda
if [ "${TRAVIS_OS_NAME}" == "osx" ]; then
time wget http://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -O miniconda.sh || exit 1
time wget http://repo.continuum.io/miniconda/Miniconda3-latest-MacOSX-x86_64.sh -q -O miniconda.sh || exit 1
else
time wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh || exit 1
time wget http://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -q -O miniconda.sh || exit 1
fi
time bash miniconda.sh -b -p "$MINICONDA_DIR" || exit 1

Expand Down Expand Up @@ -107,7 +107,7 @@ time conda install -n pandas pytest>=3.1.0
time pip install pytest-xdist moto

if [ "$LINT" ]; then
conda install flake8
conda install flake8=3.4.1
pip install cpplint
fi

Expand Down
1 change: 0 additions & 1 deletion ci/requirements-2.7_BUILD_TEST.pip
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
xarray
geopandas
seaborn
pandas_gbq
pandas_datareader
statsmodels
scikit-learn
2 changes: 1 addition & 1 deletion ci/requirements-3.5.pip
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
xarray==0.9.1
pandas-gbq
pandas_gbq
7 changes: 7 additions & 0 deletions ci/requirements-3.6.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

source activate pandas

echo "[install 3.6 downstream deps]"

conda install -n pandas -c conda-forge pandas-datareader xarray geopandas seaborn statsmodels scikit-learn dask
2 changes: 1 addition & 1 deletion ci/requirements-3.6_WIN.run
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
python-dateutil
pytz
numpy=1.12*
numpy=1.13*
bottleneck
openpyxl
xlsxwriter
Expand Down
45 changes: 22 additions & 23 deletions ci/requirements_all.txt → ci/requirements-optional-conda.txt
Original file line number Diff line number Diff line change
@@ -1,28 +1,27 @@
pytest>=3.1.0
pytest-cov
pytest-xdist
flake8
sphinx=1.5*
nbsphinx
ipython
python-dateutil
pytz
openpyxl
xlsxwriter
xlrd
xlwt
html5lib
patsy
beautifulsoup4
numpy
cython
scipy
blosc
bottleneck
fastparquet
feather-format
html5lib
ipython
ipykernel
jinja2
lxml
matplotlib
nbsphinx
numexpr
openpyxl
pyarrow
pymysql
pytables
matplotlib
pytest-cov
pytest-xdist
s3fs
scipy
seaborn
lxml
sqlalchemy
bottleneck
pymysql
Jinja2
xarray
xlrd
xlsxwriter
xlwt
27 changes: 27 additions & 0 deletions ci/requirements-optional-pip.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# This file was autogenerated by scripts/convert_deps.py
# Do not modify directlybeautifulsoup4
blosc
bottleneck
fastparquet
feather-format
html5lib
ipython
jinja2
lxml
matplotlib
nbsphinx
numexpr
openpyxl
pyarrow
pymysql
tables
pytest-cov
pytest-xdist
s3fs
scipy
seaborn
sqlalchemy
xarray
xlrd
xlsxwriter
xlwt
14 changes: 8 additions & 6 deletions ci/requirements_dev.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# This file was autogenerated by scripts/convert_deps.py
# Do not modify directly
Cython
NumPy
moto
pytest
python-dateutil
pytz
numpy
cython
pytest>=3.1.0
pytest-cov
flake8
moto
setuptools
sphinx
2 changes: 1 addition & 1 deletion ci/script_multi.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
#!/bin/bash -e

echo "[script multi]"

Expand Down
12 changes: 12 additions & 0 deletions doc/source/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -1794,6 +1794,7 @@ Methods
Timestamp.strftime
Timestamp.strptime
Timestamp.time
Timestamp.timestamp
Timestamp.timetuple
Timestamp.timetz
Timestamp.to_datetime64
Expand Down Expand Up @@ -2173,6 +2174,17 @@ Style Export and Import
Styler.export
Styler.use

Plotting
~~~~~~~~

.. currentmodule:: pandas

.. autosummary::
:toctree: generated/

plotting.register_matplotlib_converters
plotting.deregister_matplotlib_converters

.. currentmodule:: pandas

General utility functions
Expand Down
4 changes: 3 additions & 1 deletion doc/source/computation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,9 @@ The following methods are available:
:meth:`~Window.sum`, Sum of values
:meth:`~Window.mean`, Mean of values

The weights used in the window are specified by the ``win_type`` keyword. The list of recognized types are:
The weights used in the window are specified by the ``win_type`` keyword.
The list of recognized types are the `scipy.signal window functions
<https://docs.scipy.org/doc/scipy/reference/signal.html#window-functions>`__:

- ``boxcar``
- ``triang``
Expand Down
Loading