Skip to content

Commit bf95eef

Browse files
committed
Fix conflicts
2 parents 624f2de + 1d36851 commit bf95eef

File tree

114 files changed

+2676
-1531
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

114 files changed

+2676
-1531
lines changed

.binstar.yml

-28
This file was deleted.

asv_bench/benchmarks/binary_ops.py

+32
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import operator
2+
13
import numpy as np
24

35
from pandas import DataFrame, Series, date_range
@@ -9,6 +11,36 @@
911
import pandas.computation.expressions as expr
1012

1113

14+
class IntFrameWithScalar:
15+
params = [
16+
[np.float64, np.int64],
17+
[2, 3.0, np.int32(4), np.float64(5)],
18+
[
19+
operator.add,
20+
operator.sub,
21+
operator.mul,
22+
operator.truediv,
23+
operator.floordiv,
24+
operator.pow,
25+
operator.mod,
26+
operator.eq,
27+
operator.ne,
28+
operator.gt,
29+
operator.ge,
30+
operator.lt,
31+
operator.le,
32+
],
33+
]
34+
param_names = ["dtype", "scalar", "op"]
35+
36+
def setup(self, dtype, scalar, op):
37+
arr = np.random.randn(20000, 100)
38+
self.df = DataFrame(arr.astype(dtype))
39+
40+
def time_frame_op_with_scalar(self, dtype, scalar, op):
41+
op(self.df, scalar)
42+
43+
1244
class Ops:
1345

1446
params = [[True, False], ["default", 1]]

asv_bench/benchmarks/tslibs/offsets.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def setup(self, offset):
5959

6060
def time_on_offset(self, offset):
6161
for date in self.dates:
62-
offset.onOffset(date)
62+
offset.is_on_offset(date)
6363

6464

6565
class OffestDatetimeArithmetic:

ci/deps/azure-36-minimum_versions.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ dependencies:
1717
- beautifulsoup4=4.6.0
1818
- bottleneck=1.2.1
1919
- jinja2=2.8
20+
- numba=0.46.0
2021
- numexpr=2.6.2
2122
- numpy=1.13.3
2223
- openpyxl=2.5.7

ci/deps/azure-windows-36.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ dependencies:
1717
- bottleneck
1818
- fastparquet>=0.3.2
1919
- matplotlib=3.0.2
20+
- numba
2021
- numexpr
2122
- numpy=1.15.*
2223
- openpyxl

ci/deps/travis-37.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ dependencies:
2020
- pyarrow
2121
- pytz
2222
- s3fs
23+
- tabulate
2324
- pyreadstat
2425
- pip
2526
- pip:

ci/deps/travis-38.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,4 @@ dependencies:
1717
- nomkl
1818
- pytz
1919
- pip
20+
- tabulate==0.8.3

ci/setup_env.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ conda list pandas
121121
# Make sure any error below is reported as such
122122

123123
echo "[Build extensions]"
124-
python setup.py build_ext -q -i
124+
python setup.py build_ext -q -i -j2
125125

126126
# XXX: Some of our environments end up with old versions of pip (10.x)
127127
# Adding a new enough version of pip to the requirements explodes the

doc/source/getting_started/install.rst

+5-1
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,8 @@ Optional dependencies
234234
~~~~~~~~~~~~~~~~~~~~~
235235

236236
Pandas has many optional dependencies that are only used for specific methods.
237-
For example, :func:`pandas.read_hdf` requires the ``pytables`` package. If the
237+
For example, :func:`pandas.read_hdf` requires the ``pytables`` package, while
238+
:meth:`DataFrame.to_markdown` requires the ``tabulate`` package. If the
238239
optional dependency is not installed, pandas will raise an ``ImportError`` when
239240
the method requiring that dependency is called.
240241

@@ -255,6 +256,7 @@ gcsfs 0.2.2 Google Cloud Storage access
255256
html5lib HTML parser for read_html (see :ref:`note <optional_html>`)
256257
lxml 3.8.0 HTML parser for read_html (see :ref:`note <optional_html>`)
257258
matplotlib 2.2.2 Visualization
259+
numba 0.46.0 Alternative execution engine for rolling operations
258260
openpyxl 2.5.7 Reading / writing for xlsx files
259261
pandas-gbq 0.8.0 Google Big Query access
260262
psycopg2 PostgreSQL engine for sqlalchemy
@@ -264,6 +266,7 @@ pyreadstat SPSS files (.sav) reading
264266
pytables 3.4.2 HDF5 reading / writing
265267
qtpy Clipboard I/O
266268
s3fs 0.3.0 Amazon S3 access
269+
tabulate 0.8.3 Printing in Markdown-friendly format (see `tabulate`_)
267270
xarray 0.8.2 pandas-like API for N-dimensional data
268271
xclip Clipboard I/O on linux
269272
xlrd 1.1.0 Excel reading
@@ -301,3 +304,4 @@ top-level :func:`~pandas.read_html` function:
301304
.. _html5lib: https://github.com/html5lib/html5lib-python
302305
.. _BeautifulSoup4: http://www.crummy.com/software/BeautifulSoup
303306
.. _lxml: http://lxml.de
307+
.. _tabulate: https://github.com/astanin/python-tabulate

doc/source/reference/frame.rst

+1
Original file line numberDiff line numberDiff line change
@@ -361,4 +361,5 @@ Serialization / IO / conversion
361361
DataFrame.to_records
362362
DataFrame.to_string
363363
DataFrame.to_clipboard
364+
DataFrame.to_markdown
364365
DataFrame.style

0 commit comments

Comments
 (0)