Skip to content

Commit b990c5f

Browse files
committed
Revert "Merge branch 'master' into master"
This reverts commit 0cff41e, reversing changes made to 77fc4a3.
1 parent a0262ab commit b990c5f

File tree

444 files changed

+9213
-14254
lines changed

Some content is hidden

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

444 files changed

+9213
-14254
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
steps:
1919

2020
- name: Setting conda path
21-
run: echo "${HOME}/miniconda3/bin" >> $GITHUB_PATH
21+
run: echo "::add-path::${HOME}/miniconda3/bin"
2222

2323
- name: Checkout
2424
uses: actions/checkout@v1
@@ -98,7 +98,7 @@ jobs:
9898
steps:
9999

100100
- name: Setting conda path
101-
run: echo "${HOME}/miniconda3/bin" >> $GITHUB_PATH
101+
run: echo "::set-env name=PATH::${HOME}/miniconda3/bin:${PATH}"
102102

103103
- name: Checkout
104104
uses: actions/checkout@v1

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
*.log
1313
*.swp
1414
*.pdb
15-
*.zip
1615
.project
1716
.pydevproject
1817
.settings

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ repos:
2626
name: isort (cython)
2727
types: [cython]
2828
- repo: https://github.com/asottile/pyupgrade
29-
rev: v2.7.4
29+
rev: v2.7.3
3030
hooks:
3131
- id: pyupgrade
3232
args: [--py37-plus]

.travis.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,11 @@ matrix:
3535
fast_finish: true
3636

3737
include:
38+
- dist: bionic
39+
python: 3.9-dev
40+
env:
41+
- JOB="3.9-dev" PATTERN="(not slow and not network and not clipboard)"
42+
3843
- env:
3944
- JOB="3.8, slow" ENV_FILE="ci/deps/travis-38-slow.yaml" PATTERN="slow" SQL="1"
4045
services:
@@ -89,7 +94,7 @@ install:
8994
script:
9095
- echo "script start"
9196
- echo "$JOB"
92-
- source activate pandas-dev
97+
- if [ "$JOB" != "3.9-dev" ]; then source activate pandas-dev; fi
9398
- ci/run_tests.sh
9499

95100
after_script:

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,5 @@ RUN conda env update -n base -f "$pandas_home/environment.yml"
4343

4444
# Build C extensions and pandas
4545
RUN cd "$pandas_home" \
46-
&& python setup.py build_ext -j 4 \
46+
&& python setup.py build_ext --inplace -j 4 \
4747
&& python -m pip install -e .

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ clean_pyc:
99
-find . -name '*.py[co]' -exec rm {} \;
1010

1111
build: clean_pyc
12-
python setup.py build_ext
12+
python setup.py build_ext --inplace
1313

1414
lint-diff:
1515
git diff upstream/master --name-only -- "*.py" | xargs flake8

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/algorithms.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
from pandas._libs import lib
66

77
import pandas as pd
8-
from pandas.core.algorithms import make_duplicates_of_left_unique_in_right
98

109
from .pandas_vb_common import tm
1110

@@ -175,15 +174,4 @@ def time_argsort(self, N):
175174
self.array.argsort()
176175

177176

178-
class RemoveDuplicates:
179-
def setup(self):
180-
N = 10 ** 5
181-
na = np.arange(int(N / 2))
182-
self.left = np.concatenate([na[: int(N / 4)], na[: int(N / 4)]])
183-
self.right = np.concatenate([na, na])
184-
185-
def time_make_duplicates_of_left_unique_in_right(self):
186-
make_duplicates_of_left_unique_in_right(self.left, self.right)
187-
188-
189177
from .pandas_vb_common import setup # noqa: F401 isort:skip

asv_bench/benchmarks/categoricals.py

Lines changed: 0 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import string
2-
import sys
31
import warnings
42

53
import numpy as np
@@ -69,47 +67,6 @@ def time_existing_series(self):
6967
pd.Categorical(self.series)
7068

7169

72-
class AsType:
73-
def setup(self):
74-
N = 10 ** 5
75-
76-
random_pick = np.random.default_rng().choice
77-
78-
categories = {
79-
"str": list(string.ascii_letters),
80-
"int": np.random.randint(2 ** 16, size=154),
81-
"float": sys.maxsize * np.random.random((38,)),
82-
"timestamp": [
83-
pd.Timestamp(x, unit="s") for x in np.random.randint(2 ** 18, size=578)
84-
],
85-
}
86-
87-
self.df = pd.DataFrame(
88-
{col: random_pick(cats, N) for col, cats in categories.items()}
89-
)
90-
91-
for col in ("int", "float", "timestamp"):
92-
self.df[col + "_as_str"] = self.df[col].astype(str)
93-
94-
for col in self.df.columns:
95-
self.df[col] = self.df[col].astype("category")
96-
97-
def astype_str(self):
98-
[self.df[col].astype("str") for col in "int float timestamp".split()]
99-
100-
def astype_int(self):
101-
[self.df[col].astype("int") for col in "int_as_str timestamp".split()]
102-
103-
def astype_float(self):
104-
[
105-
self.df[col].astype("float")
106-
for col in "float_as_str int int_as_str timestamp".split()
107-
]
108-
109-
def astype_datetime(self):
110-
self.df["float"].astype(pd.DatetimeTZDtype(tz="US/Pacific"))
111-
112-
11370
class Concat:
11471
def setup(self):
11572
N = 10 ** 5

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({"a": arr, "b": arr})
489+
self.df = DataFrame(dict(a=arr, b=arr))
490490

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

asv_bench/benchmarks/hash_functions.py

Lines changed: 0 additions & 164 deletions
This file was deleted.

asv_bench/benchmarks/join_merge.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,6 @@ 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-
138135

139136
class JoinIndex:
140137
def setup(self):
@@ -208,9 +205,6 @@ def time_merge_dataframe_integer_2key(self, sort):
208205
def time_merge_dataframe_integer_key(self, sort):
209206
merge(self.df, self.df2, on="key1", sort=sort)
210207

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

215209
class I8Merge:
216210

asv_bench/benchmarks/reshape.py

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

asv_bench/benchmarks/rolling.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -225,17 +225,4 @@ def time_rolling_offset(self, method):
225225
getattr(self.groupby_roll_offset, method)()
226226

227227

228-
class GroupbyEWM:
229-
230-
params = ["cython", "numba"]
231-
param_names = ["engine"]
232-
233-
def setup(self, engine):
234-
df = pd.DataFrame({"A": range(50), "B": range(50)})
235-
self.gb_ewm = df.groupby("A").ewm(com=1.0)
236-
237-
def time_groupby_mean(self, engine):
238-
self.gb_ewm.mean(engine=engine)
239-
240-
241228
from .pandas_vb_common import setup # noqa: F401 isort:skip

0 commit comments

Comments
 (0)