Skip to content

BUG: TypeError when doing equality comparison with Extension Dtype #44618

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

Closed
wants to merge 147 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
147 commits
Select commit Hold shift + click to select a range
5df8f47
test added for issue #43038
ata-turhan Nov 25, 2021
7f43278
PERF: Improve performance in read_csv with numeric index col (#44610)
phofl Nov 25, 2021
dfea876
BUG: Series.reset_index not ignoring name with inplace and drop (#44578)
phofl Nov 25, 2021
0e9f929
[DOC] Transferring data from the 6th column to the first. #44379 (#4…
Mikhaylov-yv Nov 25, 2021
d621e8e
PERF: improve find_common_type perf for special case of all-equal dty…
jorisvandenbossche Nov 25, 2021
7ca5a6b
DOC: update shared_docs to clarify groupby with lists (#44569)
arushi-08 Nov 25, 2021
4f91875
BUG: concat_compat with 2D PeriodArray (#44598)
jbrockmendel Nov 25, 2021
2b53ea8
REF: remove always-True DataFrame._iset_item kwarg (#44587)
jbrockmendel Nov 25, 2021
93297e0
BUG: Series.where with IntervalDtype when no-op (#44585)
jbrockmendel Nov 25, 2021
00f4417
REF: use base class for BooleanArray any/all (#44549)
mzeitlin11 Nov 25, 2021
56b3e59
Fix 'rtol' and 'atol' for numeric extension types (#44488)
jonashaag Nov 25, 2021
fd95026
Pass through Engine kwargs in ExcelWriter (#43445)
feefladder Nov 25, 2021
7a9975f
BUG: DataFrame.shift with axis=1 and mismatched fill_value (#44564)
jbrockmendel Nov 25, 2021
63945c0
DOC: GL01 Numpydoc validation (#44567)
mroeschke Nov 25, 2021
f0d4d8d
BUG: join MultiIndex with overlapping IntervalIndex level (#44096) (#…
johannes-mueller Nov 25, 2021
96eb4c9
BUG: parse_dates=False while passing date_parser tries to use date pa…
loicdiridollou Nov 25, 2021
d74cb77
BUG: Series.view from int64 to datetimelike (#44581)
jbrockmendel Nov 25, 2021
c250432
Update test_common.py
ata-turhan Nov 25, 2021
c8a0804
ASV: reduce overall run time for GroupByMethods benchmarks (#44604)
jorisvandenbossche Nov 25, 2021
2f203d1
DOC: 'MS' offset alias does not work as described with pd.date_range(…
loicdiridollou Nov 25, 2021
5ee8cf1
TST: make tests involving use_numexpr more robust (#44601)
jorisvandenbossche Nov 26, 2021
068b599
ENH: option to change the number in `_dir_additions_for_owner` (#44335)
TheDerivator Nov 26, 2021
a164326
TYP: Signature of "reindex" incompatible with supertype "NDFrame" (#4…
MarcoGorelli Nov 26, 2021
d6723fd
BUG: read_fwf not handling skiprows correctly with iterator (#44621)
phofl Nov 26, 2021
4f06971
TYP: Signature of "rename" incompatible with supertype "NDFrame" (#40…
MarcoGorelli Nov 26, 2021
a9a37d6
BUG: fix get_indexer_non_unique() with 'object' targets with NaNs (#4…
johannes-mueller Nov 26, 2021
9d55b50
BUG: read_csv not replacing nans before date conversion (#44620)
phofl Nov 26, 2021
014ea2e
BUG: Series.mode with dt64tz or PeriodDtype (#44582)
jbrockmendel Nov 26, 2021
5e2bf77
DOC: PR08 doctring validation (#44622)
mroeschke Nov 26, 2021
8b858cd
ENH: Add numba engine to rolling/expanding.std/var (#44461)
mroeschke Nov 26, 2021
15d26a1
CLN: remove 2012-era commented-out excel test (#44636)
jbrockmendel Nov 28, 2021
658199d
Address libaggregations FIXME (#44635)
jbrockmendel Nov 28, 2021
c497b5f
CLN/TST: address FIXMEs (#44637)
jbrockmendel Nov 28, 2021
845d164
DEP: Deprecate non boolean sort for concat (#44629)
phofl Nov 28, 2021
d8068e5
DOC: Improve userguide for index_col and usecols in read_csv (#44643)
phofl Nov 28, 2021
8ffa2a9
BUG: read_csv not applying dtype to index col (#44632)
phofl Nov 28, 2021
4721e5b
Update test_common.py
ata-turhan Nov 28, 2021
3c6aded
DOC: Clarify how to keep lines with too many fields (#44652)
phofl Nov 28, 2021
4569269
CLN: dont depend on fixture implementation details (#44645)
jbrockmendel Nov 28, 2021
a7b536c
CI/TST: Change id to is for flaky tests (#44650)
mroeschke Nov 28, 2021
4d6a066
REF: EA quantile logic to EA._quantile (#44412)
jbrockmendel Nov 28, 2021
94c5ce3
BUG: read_csv not recognizing bad lines with names given (#44646)
phofl Nov 28, 2021
035501e
BUG: read_csv not converting original col with keep_date_col true (#4…
phofl Nov 28, 2021
be83376
TST: skip->xfail (#44647)
jbrockmendel Nov 28, 2021
d827c83
BUG: read_csv raising error for python engine when names longer than …
phofl Nov 28, 2021
6b53d07
Typ numerical ops (#44607)
phofl Nov 28, 2021
2d3f3df
BUG: read_csv raising ParserError when some chunks have less columns …
phofl Nov 28, 2021
040f236
TYP: changed variable new_pd_index to final_pd_index (#44500)
prithvijitguha Nov 28, 2021
0a76877
TST: stop skipping 1986 tests in test_eval (#44649)
jbrockmendel Nov 28, 2021
7f06a8a
BUG: mangle_dup_cols in read_csv replacing existing cols when conflic…
phofl Nov 28, 2021
3d99081
TYP: Typ part of python_parser (#44406)
phofl Nov 28, 2021
36df78e
ENH Remove import time warning for missing lzma (#43495)
rth Nov 28, 2021
124bee2
WARN: Clarify future warnings for read_csv (#44651)
phofl Nov 29, 2021
9921168
Holiday rename; Juneteenth `start_date` (#44576)
Bklyn Nov 29, 2021
7b7fafe
ENH: __array_ufunc__ handle np.minimum.reduce (#43923)
jbrockmendel Nov 29, 2021
f711e71
testing broadcast on multiindex (#44094)
gabrieldi95 Nov 29, 2021
243b8a6
TYP: use TYPE_CHECKING for import_optional_dependency("numba") (#44273)
simonjayhawkins Nov 29, 2021
9f23f3f
TST: de-duplicate test_eval (#44661)
jbrockmendel Nov 29, 2021
7b78b73
TST: de-xfail (#44659)
jbrockmendel Nov 29, 2021
b6d9c89
COMPAT: Fix FutureWarning in tests with pyarrow 6.0.0 (#44662)
lithomas1 Nov 29, 2021
c58d8ee
Revert "TST: de-xfail (#44659)" (#44665)
jbrockmendel Nov 29, 2021
c448ec7
DOC: move info docs to DataFrameInfo (#38062)
ivanovmg Nov 29, 2021
3839dfe
ASV: remove duplicated SelectDtypes benchmark (#44668)
jorisvandenbossche Nov 29, 2021
e7aae84
ASV: time_reindex_both_axes to reindex existing columns (#44667)
jorisvandenbossche Nov 29, 2021
3352625
BUG: groupby.sum with timedelta64 and NaT (#44658)
jbrockmendel Nov 29, 2021
8fefaa5
DOC: Include a small preview of the groupby() user guide in its API r…
tobiasmcnulty Nov 29, 2021
7600bfd
Update test_common.py
ata-turhan Nov 29, 2021
9699246
Update test_common.py
ata-turhan Nov 29, 2021
f42fff8
CI/TST: Add network tests to CI (#44648)
mroeschke Nov 29, 2021
b209ac3
TST/REF: fixturize TestEval (#44663)
jbrockmendel Nov 29, 2021
35740b7
DEPS: bump sqlalchemy min support version to 1.4.0 (#43191)
fangchenli Nov 29, 2021
a6048b5
Update test_common.py
ata-turhan Nov 29, 2021
6861fc5
PERF/BUG: ensure we store contiguous arrays in DataFrame(ndarray) for…
jorisvandenbossche Nov 30, 2021
3c4f52a
Update test_common.py
ata-turhan Nov 30, 2021
aee662a
TST: fixturize test_eval (#44675)
jbrockmendel Nov 30, 2021
d574c32
Update test_common.py
ata-turhan Nov 30, 2021
8df1155
Update test_common.py
ata-turhan Nov 30, 2021
a17ca3a
CLN: TODOs and FIXMEs (#44683)
jbrockmendel Nov 30, 2021
a4f184e
Update test_common.py
ata-turhan Nov 30, 2021
c84fb05
BUG: Series.__rfloordiv__ with list/tuple (#44674)
jbrockmendel Dec 1, 2021
8149da0
PERF: assert_frame_equal (#44695)
jbrockmendel Dec 1, 2021
7a26910
TST: check compatibility with pyarrow types_mapper parameter (#44369)
tswast Dec 1, 2021
ef3237f
ENH: enable Series.info() (#37320)
ivanovmg Dec 1, 2021
4e139f6
BUG: using .replace() on a Series containing np.nan raising ValueErro…
DriesSchaumont Dec 1, 2021
64c2ad0
tests added for dtype
ata-turhan Dec 1, 2021
d7eadde
⬆️ UPGRADE: Autoupdate pre-commit config (#44701)
github-actions[bot] Dec 1, 2021
f5107e4
TST: Use IPython instance fixture to avoid file leak (#44700)
mroeschke Dec 1, 2021
9f5e609
Type read_fwf (#44678)
phofl Dec 1, 2021
db10480
CI: Try to not auto-cancel on master (#44682)
lithomas1 Dec 1, 2021
bd6eb7e
TST: fix Nullable xfails (#44685)
jbrockmendel Dec 1, 2021
ede6234
REF: simplify Block.where (and subtle alignment bug) (#44691)
jbrockmendel Dec 1, 2021
6b84ee7
BUG: IntegerArray/FloatingArray constructors mismatched NAs (#44514)
jbrockmendel Dec 1, 2021
b4187ff
TST: de-duplicate fixtures (#44699)
jbrockmendel Dec 1, 2021
bdff214
TST: fix xfails/skips (#44706)
jbrockmendel Dec 1, 2021
328e5b6
Removed link to Engarde project. It doesn't develop anymore. (#44708)
Mikhaylov-yv Dec 2, 2021
08c688d
Deprecate positional arguments for read_fwf (#44710)
phofl Dec 2, 2021
12afff1
CI/TST: Use CI moto service instead of subprocess (#44612)
mroeschke Dec 2, 2021
9db55a7
TST: Add test for where inplace (#44255)
rlvoyer Dec 2, 2021
449211b
CLN: contextmanagers should yield in a try-finally block (#44716)
twoertwein Dec 2, 2021
01e0052
TST: Fix local run on s3 tests (#44725)
mroeschke Dec 2, 2021
e992969
PERF: DataFrame.T (#44724)
jbrockmendel Dec 2, 2021
878a022
CLN: TODOs/FIXMEs (#44717)
jbrockmendel Dec 2, 2021
633ff18
BUG: Series.where with incompatible NA value (#44697)
jbrockmendel Dec 2, 2021
54e9988
DOC: validate_docstrings cleans up leftover files; doctest +SKIP file…
mroeschke Dec 2, 2021
cba9d45
TYP: changed variable cat_array to cat_array_list in dtypes.py and ar…
nickleus27 Dec 3, 2021
3e1cfc5
PERF: passthrough mask to take_1d if already known (#44666)
jorisvandenbossche Dec 3, 2021
4f3b32b
PERF/TYP: typing cast in __getitem__ gives quite some overhead (#44624)
jorisvandenbossche Dec 3, 2021
45f0705
PERF: slow tests (#44727)
jbrockmendel Dec 3, 2021
1895062
DOC: fix examples in Timestamp functions (#44702)
valentinoli Dec 3, 2021
8eb0b1b
Deprecate prefix argument in read_csv and read_table (#44713)
phofl Dec 3, 2021
f31c2b3
CLN: TODOs (#44733)
jbrockmendel Dec 3, 2021
ef50cd6
TST: dont skip dt64tz rolling tests (#44730)
jbrockmendel Dec 3, 2021
20d3168
TST: remove non-strict xfails (#44728)
jbrockmendel Dec 3, 2021
aee6b7a
TST: read_csv raisin error with string dtype and parse dates (#44694)
phofl Dec 3, 2021
daac93c
CI/DOC: warning in docbuild (#44756)
jbrockmendel Dec 4, 2021
9198f35
DOC: Improve code example for DataFrame.join (#44735)
ChristofKaufmann Dec 4, 2021
a1c9907
TST: Parameterize test_algos (#44760)
mroeschke Dec 4, 2021
ad90384
Fix compression misspelling in ExcelWriter (#44759)
mroeschke Dec 4, 2021
f9ecd53
REGR: find_stack_level reverts (#44753)
rhshadrach Dec 4, 2021
5008ece
CLN: Todo test reductions in test_style.py (#44750)
attack68 Dec 4, 2021
3e7c2f6
ENH: Add indexing syntax to GroupBy.nth() (#44688)
johnzangwill Dec 4, 2021
5302d1b
BUG: FloatingArray(float16data) (#44715)
jbrockmendel Dec 4, 2021
4bacee5
REF: share _reduce method (#44737)
jbrockmendel Dec 4, 2021
d6dbe6f
ENH: implement tm.shares_memory (#44747)
jbrockmendel Dec 4, 2021
0bf83d6
BUG: series.interpolate(inplace=True) *actually* inplace (#44749)
jbrockmendel Dec 4, 2021
bb50531
ENH: improved dtype inference for Index.map (#44609)
jbrockmendel Dec 5, 2021
ed5a004
Deprecate mapper argument in rename (#44672)
Varun270 Dec 5, 2021
d9098af
Update test_common.py
ata-turhan Dec 5, 2021
6e9d9f1
Update test_common.py
ata-turhan Dec 5, 2021
5310185
fixture added
ata-turhan Dec 5, 2021
1d1ea32
Merge branch 'tests-for-dtype-comparisons' of https://github.com/foti…
ata-turhan Dec 5, 2021
cfe3eaa
fixtures added
ata-turhan Dec 5, 2021
9a3309c
Merge branch 'tests-for-dtype-comparisons' of https://github.com/foti…
ata-turhan Dec 5, 2021
ab36d2f
fix
ata-turhan Dec 5, 2021
10cab6a
Update test_common.py
ata-turhan Dec 5, 2021
1cbe011
ENH: allow attrs to be propagated via pd.concat (#42252)
xiki-tempula Dec 5, 2021
0635a25
CLN/TST: skips -> xfails (#44744)
jbrockmendel Dec 5, 2021
b435403
Merge branch 'tests-ons' of https://github.com/fotino21/pandas into t…
ata-turhan Dec 5, 2021
a86d590
fixtured
ata-turhan Dec 5, 2021
1fe373f
44414 data frame attributes not propagating with astype (#44680)
skwirskj Dec 5, 2021
2d0fa31
Updated code_checks.sh with PR06 (#43511)
Varun270 Dec 5, 2021
9c74428
DOC: Uniform block directive syntax. (#44757)
Carreau Dec 5, 2021
b7ac9be
fix PR06 failing CI (#44773)
MarcoGorelli Dec 6, 2021
e6f0d1d
ENH: IntervalArray.min/max (#44746)
jbrockmendel Dec 6, 2021
097322f
CLN: FIXMEs (#44771)
jbrockmendel Dec 6, 2021
9bb7211
Merge branch 'tests-for-dtype-comparisons' of https://github.com/foti…
ata-turhan Dec 6, 2021
bbced30
fixtures
ata-turhan Dec 6, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
19 changes: 15 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@ jobs:
shell: bash -l {0}

concurrency:
group: ${{ github.ref }}-checks
cancel-in-progress: ${{github.event_name == 'pull_request'}}
# https://github.community/t/concurrecy-not-work-for-push/183068/7
group: ${{ github.event_name == 'push' && github.run_number || github.ref }}-checks
cancel-in-progress: true

steps:
- name: Checkout
Expand Down Expand Up @@ -102,7 +103,8 @@ jobs:
runs-on: ubuntu-latest

concurrency:
group: ${{ github.ref }}-web-docs
# https://github.community/t/concurrecy-not-work-for-push/183068/7
group: ${{ github.event_name == 'push' && github.run_number || github.ref }}-web-docs
cancel-in-progress: true

steps:
Expand Down Expand Up @@ -160,11 +162,20 @@ jobs:
data_manager:
name: Test experimental data manager
runs-on: ubuntu-latest
services:
moto:
image: motoserver/moto
env:
AWS_ACCESS_KEY_ID: foobar_key
AWS_SECRET_ACCESS_KEY: foobar_secret
ports:
- 5000:5000
strategy:
matrix:
pattern: ["not slow and not network and not clipboard", "slow"]
concurrency:
group: ${{ github.ref }}-data_manager-${{ matrix.pattern }}
# https://github.community/t/concurrecy-not-work-for-push/183068/7
group: ${{ github.event_name == 'push' && github.run_number || github.ref }}-data_manager-${{ matrix.pattern }}
cancel-in-progress: true

steps:
Expand Down
13 changes: 11 additions & 2 deletions .github/workflows/database.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,9 @@ jobs:
fail-fast: false

concurrency:
group: ${{ github.ref }}-${{ matrix.ENV_FILE }}
cancel-in-progress: ${{github.event_name == 'pull_request'}}
# https://github.community/t/concurrecy-not-work-for-push/183068/7
group: ${{ github.event_name == 'push' && github.run_number || github.ref }}-${{ matrix.ENV_FILE }}
cancel-in-progress: true

services:
mysql:
Expand Down Expand Up @@ -62,6 +63,14 @@ jobs:
ports:
- 5432:5432

moto:
image: motoserver/moto
env:
AWS_ACCESS_KEY_ID: foobar_key
AWS_SECRET_ACCESS_KEY: foobar_secret
ports:
- 5000:5000

steps:
- name: Checkout
uses: actions/checkout@v2
Expand Down
17 changes: 13 additions & 4 deletions .github/workflows/posix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ jobs:
settings: [
[actions-38-minimum_versions.yaml, "not slow and not network and not clipboard", "", "", "", "", ""],
[actions-38-locale_slow.yaml, "slow", "language-pack-it xsel", "it_IT.utf8", "it_IT.utf8", "", ""],
[actions-38.yaml, "not slow and not network and not clipboard", "", "", "", "", ""],
[actions-38.yaml, "not slow and not clipboard", "", "", "", "", ""],
[actions-38-slow.yaml, "slow", "", "", "", "", ""],
[actions-38-locale.yaml, "not slow and not network", "language-pack-zh-hans xsel", "zh_CN.utf8", "zh_CN.utf8", "", ""],
[actions-39-slow.yaml, "slow", "", "", "", "", ""],
[actions-39-numpydev.yaml, "not slow and not network", "xsel", "", "", "deprecate", "-W error"],
[actions-39.yaml, "not slow and not network and not clipboard", "", "", "", "", ""]
[actions-39.yaml, "not slow and not clipboard", "", "", "", "", ""]
]
fail-fast: false
env:
Expand All @@ -46,8 +46,17 @@ jobs:
TEST_ARGS: ${{ matrix.settings[6] }}
PYTEST_TARGET: pandas
concurrency:
group: ${{ github.ref }}-${{ matrix.settings[0] }}
cancel-in-progress: ${{github.event_name == 'pull_request'}}
# https://github.community/t/concurrecy-not-work-for-push/183068/7
group: ${{ github.event_name == 'push' && github.run_number || github.ref }}-${{ matrix.settings[0] }}
cancel-in-progress: true
services:
moto:
image: motoserver/moto
env:
AWS_ACCESS_KEY_ID: foobar_key
AWS_SECRET_ACCESS_KEY: foobar_secret
ports:
- 5000:5000

steps:
- name: Checkout
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@ jobs:
pre-commit:
runs-on: ubuntu-latest
concurrency:
group: ${{ github.ref }}-pre-commit
cancel-in-progress: ${{github.event_name == 'pull_request'}}
# https://github.community/t/concurrecy-not-work-for-push/183068/7
group: ${{ github.event_name == 'push' && github.run_number || github.ref }}-pre-commit
cancel-in-progress: true
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/python-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,9 @@ jobs:
timeout-minutes: 80

concurrency:
group: ${{ github.ref }}-${{ matrix.os }}-${{ matrix.pytest_target }}-dev
cancel-in-progress: ${{github.event_name == 'pull_request'}}
#https://github.community/t/concurrecy-not-work-for-push/183068/7
group: ${{ github.event_name == 'push' && github.run_number || github.ref }}-${{ matrix.os }}-${{ matrix.pytest_target }}-dev
cancel-in-progress: true

steps:
- uses: actions/checkout@v2
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/sdist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@ jobs:
matrix:
python-version: ["3.8", "3.9", "3.10"]
concurrency:
group: ${{github.ref}}-${{matrix.python-version}}-sdist
cancel-in-progress: ${{github.event_name == 'pull_request'}}
# https://github.community/t/concurrecy-not-work-for-push/183068/7
group: ${{ github.event_name == 'push' && github.run_number || github.ref }}-${{matrix.python-version}}-sdist
cancel-in-progress: true

steps:
- uses: actions/checkout@v2
Expand Down
8 changes: 5 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ repos:
- id: absolufy-imports
files: ^pandas/
- repo: https://github.com/python/black
rev: 21.10b0
rev: 21.11b1
hooks:
- id: black
- repo: https://github.com/codespell-project/codespell
Expand Down Expand Up @@ -55,11 +55,11 @@ repos:
types: [text]
args: [--append-config=flake8/cython-template.cfg]
- repo: https://github.com/PyCQA/isort
rev: 5.9.3
rev: 5.10.1
hooks:
- id: isort
- repo: https://github.com/asottile/pyupgrade
rev: v2.29.0
rev: v2.29.1
hooks:
- id: pyupgrade
args: [--py38-plus]
Expand Down Expand Up @@ -111,6 +111,8 @@ repos:
# Incorrect code-block / IPython directives
|\.\.\ code-block\ ::
|\.\.\ ipython\ ::
# directive should not have a space before ::
|\.\.\ \w+\ ::

# Check for deprecated messages without sphinx directive
|(DEPRECATED|DEPRECATE|Deprecated)(:|,|\.)
Expand Down
5 changes: 4 additions & 1 deletion asv_bench/benchmarks/frame_ctor.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@
)
except ImportError:
# For compatibility with older versions
from pandas.core.datetools import * # noqa
from pandas.core.datetools import (
Hour,
Nano,
)


class FromDicts:
Expand Down
13 changes: 1 addition & 12 deletions asv_bench/benchmarks/frame_methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def time_reindex_axis1_missing(self):
self.df.reindex(columns=self.idx)

def time_reindex_both_axes(self):
self.df.reindex(index=self.idx, columns=self.idx)
self.df.reindex(index=self.idx, columns=self.idx_cols)

def time_reindex_upcast(self):
self.df2.reindex(np.random.permutation(range(1200)))
Expand Down Expand Up @@ -731,17 +731,6 @@ def time_dataframe_describe(self):
self.df.describe()


class SelectDtypes:
params = [100, 1000]
param_names = ["n"]

def setup(self, n):
self.df = DataFrame(np.random.randn(10, n))

def time_select_dtypes(self, n):
self.df.select_dtypes(include="int")


class MemoryUsage:
def setup(self):
self.df = DataFrame(np.random.randn(100000, 2), columns=list("AB"))
Expand Down
13 changes: 8 additions & 5 deletions asv_bench/benchmarks/groupby.py
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ class GroupByMethods:
"var",
],
["direct", "transformation"],
[1, 2, 5, 10],
[1, 5],
]

def setup(self, dtype, method, application, ncols):
Expand All @@ -455,6 +455,7 @@ def setup(self, dtype, method, application, ncols):
raise NotImplementedError

if application == "transformation" and method in [
"describe",
"head",
"tail",
"unique",
Expand All @@ -464,7 +465,12 @@ def setup(self, dtype, method, application, ncols):
# DataFrameGroupBy doesn't have these methods
raise NotImplementedError

ngroups = 1000
if method == "describe":
ngroups = 20
elif method in ["mad", "skew"]:
ngroups = 100
else:
ngroups = 1000
size = ngroups * 2
rng = np.arange(ngroups).reshape(-1, 1)
rng = np.broadcast_to(rng, (len(rng), ncols))
Expand All @@ -491,9 +497,6 @@ def setup(self, dtype, method, application, ncols):
cols = cols[0]

if application == "transformation":
if method == "describe":
raise NotImplementedError

self.as_group_method = lambda: df.groupby("key")[cols].transform(method)
self.as_field_method = lambda: df.groupby(cols)["key"].transform(method)
else:
Expand Down
10 changes: 10 additions & 0 deletions asv_bench/benchmarks/io/csv.py
Original file line number Diff line number Diff line change
Expand Up @@ -525,4 +525,14 @@ def time_to_datetime_format_DD_MM_YYYY(self, cache_dates):
to_datetime(df["date"], cache=cache_dates, format="%d-%m-%Y")


class ReadCSVIndexCol(StringIORewind):
def setup(self):
count_elem = 100_000
data = "a,b\n" + "1,2\n" * count_elem
self.StringIO_input = StringIO(data)

def time_read_csv_index_col(self):
read_csv(self.StringIO_input, index_col="a")


from ..pandas_vb_common import setup # noqa: F401 isort:skip
2 changes: 1 addition & 1 deletion asv_bench/benchmarks/rolling.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class NumbaEngineMethods:
["DataFrame", "Series"],
["int", "float"],
[("rolling", {"window": 10}), ("expanding", {})],
["sum", "max", "min", "median", "mean"],
["sum", "max", "min", "median", "mean", "var", "std"],
[True, False],
[None, 100],
)
Expand Down
4 changes: 2 additions & 2 deletions ci/azure/posix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ jobs:
py38_macos_1:
ENV_FILE: ci/deps/azure-macos-38.yaml
CONDA_PY: "38"
PATTERN: "not slow and not network"
PATTERN: "not slow"
PYTEST_TARGET: "pandas/tests/[a-h]*"
py38_macos_2:
ENV_FILE: ci/deps/azure-macos-38.yaml
CONDA_PY: "38"
PATTERN: "not slow and not network"
PATTERN: "not slow"
PYTEST_TARGET: "pandas/tests/[i-z]*"

steps:
Expand Down
8 changes: 4 additions & 4 deletions ci/azure/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,28 +11,28 @@ jobs:
py38_np18_1:
ENV_FILE: ci/deps/azure-windows-38.yaml
CONDA_PY: "38"
PATTERN: "not slow and not network"
PATTERN: "not slow"
PYTEST_WORKERS: 2 # GH-42236
PYTEST_TARGET: "pandas/tests/[a-h]*"

py38_np18_2:
ENV_FILE: ci/deps/azure-windows-38.yaml
CONDA_PY: "38"
PATTERN: "not slow and not network"
PATTERN: "not slow"
PYTEST_WORKERS: 2 # GH-42236
PYTEST_TARGET: "pandas/tests/[i-z]*"

py39_1:
ENV_FILE: ci/deps/azure-windows-39.yaml
CONDA_PY: "39"
PATTERN: "not slow and not network and not high_memory"
PATTERN: "not slow and not high_memory"
PYTEST_WORKERS: 2 # GH-42236
PYTEST_TARGET: "pandas/tests/[a-h]*"

py39_2:
ENV_FILE: ci/deps/azure-windows-39.yaml
CONDA_PY: "39"
PATTERN: "not slow and not network and not high_memory"
PATTERN: "not slow and not high_memory"
PYTEST_WORKERS: 2 # GH-42236
PYTEST_TARGET: "pandas/tests/[i-z]*"

Expand Down
4 changes: 2 additions & 2 deletions ci/code_checks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,8 @@ fi
### DOCSTRINGS ###
if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then

MSG='Validate docstrings (GL02, GL03, GL04, GL05, GL06, GL07, GL09, GL10, SS01, SS02, SS03, SS04, SS05, PR03, PR04, PR05, PRO9, PR10, EX04, RT01, RT04, RT05, SA02, SA03)' ; echo $MSG
$BASE_DIR/scripts/validate_docstrings.py --format=actions --errors=GL02,GL03,GL04,GL05,GL06,GL07,GL09,GL10,SS02,SS03,SS04,SS05,PR03,PR04,PR05,PR09,PR10,EX04,RT01,RT04,RT05,SA02,SA03
MSG='Validate docstrings (GL01, GL02, GL03, GL04, GL05, GL06, GL07, GL09, GL10, SS01, SS02, SS03, SS04, SS05, PR03, PR04, PR05, PR06, PR08, PR09, PR10, EX04, RT01, RT04, RT05, SA02, SA03)' ; echo $MSG
$BASE_DIR/scripts/validate_docstrings.py --format=actions --errors=GL01,GL02,GL03,GL04,GL05,GL06,GL07,GL09,GL10,SS02,SS03,SS04,SS05,PR03,PR04,PR05,PR06,PR08,PR09,PR10,EX04,RT01,RT04,RT05,SA02,SA03
RET=$(($RET + $?)) ; echo $MSG "DONE"

fi
Expand Down
4 changes: 1 addition & 3 deletions ci/deps/actions-38-db-min.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,8 @@ dependencies:
- xlrd
- xlsxwriter
- xlwt
- moto
- flask

# sql
- psycopg2=2.8.4
- pymysql=0.10.1
- sqlalchemy=1.3.11
- sqlalchemy=1.4.0
3 changes: 1 addition & 2 deletions ci/deps/actions-38-db.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ dependencies:
# pandas dependencies
- aiobotocore<2.0.0
- beautifulsoup4
- boto3
- botocore>=1.11
- dask
- fastparquet>=0.4.0
Expand All @@ -22,8 +23,6 @@ dependencies:
- geopandas
- html5lib
- matplotlib
- moto>=1.3.14
- flask
- nomkl
- numexpr
- numpy=1.18
Expand Down
3 changes: 0 additions & 3 deletions ci/deps/actions-38-locale.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,12 @@ dependencies:

# pandas dependencies
- beautifulsoup4
- flask
- html5lib
- ipython
- jinja2
- jedi
- lxml
- matplotlib<3.3.0
- moto
- nomkl
- numexpr
- numpy<1.20 # GH#39541 compat with pyarrow<3
Expand All @@ -34,7 +32,6 @@ dependencies:
- xlrd
- xlsxwriter
- xlwt
- moto
- pyarrow=1.0.1
- pip
- pip:
Expand Down
2 changes: 1 addition & 1 deletion ci/deps/actions-38-locale_slow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ dependencies:
- python-blosc
- pytz=2020.1
- scipy
- sqlalchemy=1.3.11
- sqlalchemy=1.4.0
- xlrd=2.0.1
- xlsxwriter=1.2.2
- xlwt=1.3.0
Expand Down
Loading