Skip to content

Commit d42d343

Browse files
chean.wei.khorchean.wei.khor
authored andcommitted
deprecate
2 parents b6bc361 + 6da08eb commit d42d343

File tree

185 files changed

+2969
-1319
lines changed

Some content is hidden

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

185 files changed

+2969
-1319
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
environment:
99
ENV_FILE: ci/deps/circle-38-arm64.yaml
1010
PYTEST_WORKERS: auto
11-
PATTERN: "not slow and not network and not clipboard and not arm_slow"
11+
PATTERN: "not single_cpu and not slow and not network and not clipboard and not arm_slow and not db"
1212
PYTEST_TARGET: "pandas"
1313
PANDAS_CI: "1"
1414
steps:

.github/workflows/code-checks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ jobs:
7474

7575
- name: Install pyright
7676
# note: keep version in sync with .pre-commit-config.yaml
77-
run: npm install -g [email protected].212
77+
run: npm install -g [email protected].230
7878

7979
- name: Build Pandas
8080
id: build

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ repos:
8585
types: [python]
8686
stages: [manual]
8787
# note: keep version in sync with .github/workflows/code-checks.yml
88-
additional_dependencies: ['[email protected].212']
88+
additional_dependencies: ['[email protected].230']
8989
- repo: local
9090
hooks:
9191
- id: flake8-rst

asv_bench/benchmarks/array.py

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
import pandas as pd
44

5+
from .pandas_vb_common import tm
6+
57

68
class BooleanArray:
79
def setup(self):
@@ -39,3 +41,32 @@ def time_constructor(self):
3941

4042
def time_from_integer_array(self):
4143
pd.array(self.values_integer, dtype="Int64")
44+
45+
46+
class ArrowStringArray:
47+
48+
params = [False, True]
49+
param_names = ["multiple_chunks"]
50+
51+
def setup(self, multiple_chunks):
52+
try:
53+
import pyarrow as pa
54+
except ImportError:
55+
raise NotImplementedError
56+
strings = tm.rands_array(3, 10_000)
57+
if multiple_chunks:
58+
chunks = [strings[i : i + 100] for i in range(0, len(strings), 100)]
59+
self.array = pd.arrays.ArrowStringArray(pa.chunked_array(chunks))
60+
else:
61+
self.array = pd.arrays.ArrowStringArray(pa.array(strings))
62+
63+
def time_setitem(self, multiple_chunks):
64+
for i in range(200):
65+
self.array[i] = "foo"
66+
67+
def time_setitem_list(self, multiple_chunks):
68+
indexer = list(range(0, 50)) + list(range(-50, 0))
69+
self.array[indexer] = ["foo"] * len(indexer)
70+
71+
def time_setitem_slice(self, multiple_chunks):
72+
self.array[::10] = "foo"

azure-pipelines.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
/opt/python/cp38-cp38/bin/python -m venv ~/virtualenvs/pandas-dev && \
4646
. ~/virtualenvs/pandas-dev/bin/activate && \
4747
python -m pip install --no-deps -U pip wheel 'setuptools<60.0.0' && \
48-
pip install cython numpy python-dateutil pytz pytest pytest-xdist hypothesis pytest-azurepipelines && \
48+
pip install cython numpy python-dateutil pytz pytest pytest-xdist pytest-asyncio hypothesis && \
4949
python setup.py build_ext -q -j2 && \
5050
python -m pip install --no-build-isolation -e . && \
5151
pytest -m 'not slow and not network and not clipboard and not single_cpu' pandas --junitxml=test-data.xml"

ci/deps/actions-310-numpydev.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ dependencies:
99
- pytest-cov
1010
- pytest-xdist>=1.31
1111
- hypothesis>=5.5.3
12+
- pytest-asyncio
1213

1314
# pandas dependencies
1415
- python-dateutil

ci/deps/actions-310.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ dependencies:
4242
- pytables
4343
- pyarrow
4444
- pyreadstat
45+
- python-snappy
4546
- pyxlsb
4647
- s3fs
4748
- scipy
48-
- snappy
4949
- sqlalchemy
5050
- tabulate
5151
- xarray

ci/deps/actions-38-downstream_compat.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,14 @@ dependencies:
3838
- odfpy
3939
- pandas-gbq
4040
- psycopg2
41-
- pymysql
42-
- pytables
4341
- pyarrow
42+
- pymysql
4443
- pyreadstat
44+
- pytables
45+
- python-snappy
4546
- pyxlsb
4647
- s3fs
4748
- scipy
48-
- snappy
4949
- sqlalchemy
5050
- tabulate
5151
- xarray

ci/deps/actions-38-minimum_versions.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,14 @@ dependencies:
4040
- openpyxl=3.0.3
4141
- pandas-gbq=0.14.0
4242
- psycopg2=2.8.4
43-
- pymysql=0.10.1
44-
- pytables=3.6.1
4543
- pyarrow=1.0.1
44+
- pymysql=0.10.1
4645
- pyreadstat=1.1.0
46+
- pytables=3.6.1
47+
- python-snappy=0.6.0
4748
- pyxlsb=1.0.6
4849
- s3fs=0.4.0
4950
- scipy=1.4.1
50-
- snappy=1.1.8
5151
- sqlalchemy=1.4.0
5252
- tabulate=0.8.7
5353
- xarray=0.15.1

ci/deps/actions-38.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,14 @@ dependencies:
3737
- odfpy
3838
- pandas-gbq
3939
- psycopg2
40-
- pymysql
41-
- pytables
4240
- pyarrow
41+
- pymysql
4342
- pyreadstat
43+
- pytables
44+
- python-snappy
4445
- pyxlsb
4546
- s3fs
4647
- scipy
47-
- snappy
4848
- sqlalchemy
4949
- tabulate
5050
- xarray

0 commit comments

Comments
 (0)