Skip to content

Commit 5fd6d3e

Browse files
committed
merger upstream/master to GH32073
2 parents edf7196 + 5abc06f commit 5fd6d3e

File tree

258 files changed

+4656
-3101
lines changed

Some content is hidden

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

258 files changed

+4656
-3101
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ Here are just a few of the things that pandas does well:
6060
and saving/loading data from the ultrafast [**HDF5 format**][hdfstore]
6161
- [**Time series**][timeseries]-specific functionality: date range
6262
generation and frequency conversion, moving window statistics,
63-
date shifting and lagging.
63+
date shifting and lagging
6464

6565

6666
[missing-data]: https://pandas.pydata.org/pandas-docs/stable/missing_data.html#working-with-missing-data

asv_bench/benchmarks/groupby.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ def setup(self):
486486
tmp2 = (np.random.random(10000) * 10.0).astype(np.float32)
487487
tmp = np.concatenate((tmp1, tmp2))
488488
arr = np.repeat(tmp, 10)
489-
self.df = DataFrame(dict(a=arr, b=arr))
489+
self.df = DataFrame({"a": arr, "b": arr})
490490

491491
def time_sum(self):
492492
self.df.groupby(["a"])["b"].sum()

asv_bench/benchmarks/join_merge.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,9 @@ def time_join_dataframe_index_single_key_small(self, sort):
132132
def time_join_dataframe_index_shuffle_key_bigger_sort(self, sort):
133133
self.df_shuf.join(self.df_key2, on="key2", sort=sort)
134134

135+
def time_join_dataframes_cross(self, sort):
136+
self.df.loc[:2000].join(self.df_key1, how="cross", sort=sort)
137+
135138

136139
class JoinIndex:
137140
def setup(self):
@@ -205,6 +208,9 @@ def time_merge_dataframe_integer_2key(self, sort):
205208
def time_merge_dataframe_integer_key(self, sort):
206209
merge(self.df, self.df2, on="key1", sort=sort)
207210

211+
def time_merge_dataframes_cross(self, sort):
212+
merge(self.left.loc[:2000], self.right.loc[:2000], how="cross", sort=sort)
213+
208214

209215
class I8Merge:
210216

asv_bench/benchmarks/reshape.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,10 @@ def setup(self):
103103
nidvars = 20
104104
N = 5000
105105
self.letters = list("ABCD")
106-
yrvars = [l + str(num) for l, num in product(self.letters, range(1, nyrs + 1))]
106+
yrvars = [
107+
letter + str(num)
108+
for letter, num in product(self.letters, range(1, nyrs + 1))
109+
]
107110
columns = [str(i) for i in range(nidvars)] + yrvars
108111
self.df = DataFrame(np.random.randn(N, nidvars + len(yrvars)), columns=columns)
109112
self.df["id"] = self.df.index

ci/deps/azure-39.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,8 @@ dependencies:
1515
- numpy
1616
- python-dateutil
1717
- pytz
18+
19+
# optional dependencies
20+
- pytables
21+
- scipy
22+
- pyarrow=1.0

ci/deps/travis-37-locale.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ dependencies:
3434
- pyarrow>=0.17
3535
- pytables>=3.5.1
3636
- scipy
37-
- xarray=0.12.0
37+
- xarray=0.12.3
3838
- xlrd
3939
- xlsxwriter
4040
- xlwt

doc/source/development/contributing.rst

Lines changed: 34 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ Creating a development environment
146146
----------------------------------
147147

148148
To test out code changes, you'll need to build pandas from source, which
149-
requires a C compiler and Python environment. If you're making documentation
149+
requires a C/C++ compiler and Python environment. If you're making documentation
150150
changes, you can skip to :ref:`contributing.documentation` but you won't be able
151151
to build the documentation locally before pushing your changes.
152152

@@ -195,6 +195,13 @@ operations. To install pandas from source, you need to compile these C
195195
extensions, which means you need a C compiler. This process depends on which
196196
platform you're using.
197197

198+
If you have setup your environment using ``conda``, the packages ``c-compiler``
199+
and ``cxx-compiler`` will install a fitting compiler for your platform that is
200+
compatible with the remaining conda packages. On Windows and macOS, you will
201+
also need to install the SDKs as they have to be distributed separately.
202+
These packages will be automatically installed by using ``pandas``'s
203+
``environment.yml``.
204+
198205
**Windows**
199206

200207
You will need `Build Tools for Visual Studio 2017
@@ -206,12 +213,33 @@ You will need `Build Tools for Visual Studio 2017
206213
scrolling down to "All downloads" -> "Tools for Visual Studio 2019".
207214
In the installer, select the "C++ build tools" workload.
208215

216+
You can install the necessary components on the commandline using
217+
`vs_buildtools.exe <https://aka.ms/vs/16/release/vs_buildtools.exe>`_:
218+
219+
.. code::
220+
221+
vs_buildtools.exe --quiet --wait --norestart --nocache ^
222+
--installPath C:\BuildTools ^
223+
--add "Microsoft.VisualStudio.Workload.VCTools;includeRecommended" ^
224+
--add Microsoft.VisualStudio.Component.VC.v141 ^
225+
--add Microsoft.VisualStudio.Component.VC.v141.x86.x64 ^
226+
--add Microsoft.VisualStudio.Component.Windows10SDK.17763
227+
228+
To setup the right paths on the commandline, call
229+
``"C:\BuildTools\VC\Auxiliary\Build\vcvars64.bat" -vcvars_ver=14.16 10.0.17763.0``.
230+
209231
**macOS**
210232

211-
Information about compiler installation can be found here:
233+
To use the ``conda``-based compilers, you will need to install the
234+
Developer Tools using ``xcode-select --install``. Otherwise
235+
information about compiler installation can be found here:
212236
https://devguide.python.org/setup/#macos
213237

214-
**Unix**
238+
**Linux**
239+
240+
For Linux-based ``conda`` installations, you won't have to install any
241+
additional components outside of the conda environment. The instructions
242+
below are only needed if your setup isn't based on conda environments.
215243

216244
Some Linux distributions will come with a pre-installed C compiler. To find out
217245
which compilers (and versions) are installed on your system::
@@ -243,11 +271,10 @@ Let us know if you have any difficulties by opening an issue or reaching out on
243271
Creating a Python environment
244272
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
245273

246-
Now that you have a C compiler, create an isolated pandas development
247-
environment:
274+
Now create an isolated pandas development environment:
248275

249-
* Install either `Anaconda <https://www.anaconda.com/download/>`_ or `miniconda
250-
<https://conda.io/miniconda.html>`_
276+
* Install either `Anaconda <https://www.anaconda.com/download/>`_, `miniconda
277+
<https://conda.io/miniconda.html>`_, or `miniforge <https://github.com/conda-forge/miniforge>`_
251278
* Make sure your conda is up to date (``conda update conda``)
252279
* Make sure that you have :ref:`cloned the repository <contributing.forking>`
253280
* ``cd`` to the pandas source directory

doc/source/development/policies.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ We will not introduce new deprecations in patch releases.
3535
Deprecations will only be enforced in **major** releases. For example, if a
3636
behavior is deprecated in pandas 1.2.0, it will continue to work, with a
3737
warning, for all releases in the 1.x series. The behavior will change and the
38-
deprecation removed in the next next major release (2.0.0).
38+
deprecation removed in the next major release (2.0.0).
3939

4040
.. note::
4141

doc/source/getting_started/install.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ pyxlsb 1.0.6 Reading for xlsb files
284284
qtpy Clipboard I/O
285285
s3fs 0.4.0 Amazon S3 access
286286
tabulate 0.8.3 Printing in Markdown-friendly format (see `tabulate`_)
287-
xarray 0.12.0 pandas-like API for N-dimensional data
287+
xarray 0.12.3 pandas-like API for N-dimensional data
288288
xclip Clipboard I/O on linux
289289
xlrd 1.2.0 Excel reading
290290
xlwt 1.3.0 Excel writing

doc/source/reference/index.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ public functions related to data types in pandas.
3030
series
3131
frame
3232
arrays
33-
panel
3433
indexing
3534
offset_frequency
3635
window

0 commit comments

Comments
 (0)