Skip to content
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

CLN: unify numpy.random-related imports in pandas/tests/plotting #37103

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
208 commits
Select commit Hold shift + click to select a range
669bf55
REF: numpy.random-related imports
onshek Oct 13, 2020
46e557e
Revert "REF: numpy.random-related imports"
onshek Oct 14, 2020
0d9be88
post-merge fixup (#37112)
jbrockmendel Oct 14, 2020
241740c
CLN: ops, unnecessary mixin (#37111)
jbrockmendel Oct 14, 2020
401d7a1
CLN: remove unnecessary _validate_foo methods (#37106)
jbrockmendel Oct 14, 2020
f58de9f
assert that dtype arg is an integer type (#37089)
arw2019 Oct 14, 2020
abd3acf
CLN: clean Index._id (#37087)
topper-123 Oct 14, 2020
3d29aee
TYP: mostly io, plotting (#37059)
jbrockmendel Oct 14, 2020
0fa47b6
Write pickle to file-like without intermediate in-memory buffer (#37056)
ig248 Oct 14, 2020
fad14fd
CLN: core/dtypes/cast.py::maybe_downcast_to_dtype (#37050)
arw2019 Oct 14, 2020
2806e7d
DOC: Clarified pandas_version in to_json (#37025)
tnwei Oct 14, 2020
85260bf
TYP: core/dtypes/cast.py (#37024)
arw2019 Oct 14, 2020
44ab7a1
BUG/CLN: Clean float / complex string formatting (#36799)
dsaxton Oct 14, 2020
c0c3516
Revert "CLN: core/dtypes/cast.py::maybe_downcast_to_dtype (#37050)" (…
simonjayhawkins Oct 14, 2020
e4e1b63
VIS: Accept xlabel and ylabel for scatter and hexbin plots (#37102)
treuherz Oct 14, 2020
66f3917
REF/CLN: pandas/io/parsers.py (#36852)
ivanovmg Oct 14, 2020
850979b
TST: add message matches to pytest.raises in test_duplicate_labels.py…
theMogget Oct 14, 2020
34afd03
PERF: TimedeltaArray.__iter__ (#36551)
jbrockmendel Oct 14, 2020
d7a5b83
Fix GH-29442 DataFrame.groupby doesn't preserve _metadata (#35688)
Japanuspus Oct 14, 2020
c708a32
ERR: Removing quotation marks in error message (#37120)
gfyoung Oct 15, 2020
31c48ee
BUG: Raise ValueError with nan in timeaware windows (#36822)
phofl Oct 15, 2020
d25cb8d
DOC: Add summary to interpolate (#37042)
erictleung Oct 15, 2020
44d9b3a
PERF: compare RangeIndex to equal RangeIndex (#37130)
topper-123 Oct 15, 2020
a838759
BUG: preserve timezone info when writing empty tz-aware frame to HDF5…
arw2019 Oct 15, 2020
020040b
REF/TYP: pandas/core/window/*.py (#37091)
mroeschke Oct 15, 2020
83adbdb
CLN: indexing (#37142)
jbrockmendel Oct 16, 2020
9273967
:fire: remove no-longer-necessary checks (#37138)
MarcoGorelli Oct 16, 2020
e719538
TST: test for expanding window with min_periods GH25857 (#37131)
theMogget Oct 16, 2020
49b0092
CLN: sync min versions (#37147)
fangchenli Oct 16, 2020
e7ee7cb
DOC: Remove redundant table in Series docs (#37143)
erictleung Oct 16, 2020
8fa2f09
DOC: capitalize Python as proper noun (#37146)
erictleung Oct 16, 2020
b1dd20b
CI move check incorrect sphinx directives to pre-commit (#37136)
MarcoGorelli Oct 16, 2020
a08e1f8
Update code_checks.sh to check for instances of os.remove (#37097)
jnecus Oct 16, 2020
d936b00
Fix GL01 docstring errors in some functions (#36875)
Iqrar99 Oct 16, 2020
c2a96c6
BUG: Fix FloatingArray output formatting (#36800)
dsaxton Oct 16, 2020
53b58e8
TST: RollingGroupby(..., center=True, on=...) (#37154)
mroeschke Oct 16, 2020
5cf98d8
REF: share tests (#37162)
jbrockmendel Oct 16, 2020
8cd42e1
REF: avoid access to _mgr.blocks -> _mgr._is_single_block (#37155)
jorisvandenbossche Oct 16, 2020
710148e
CLN/REF: Refactor min_periods calculation in rolling (#37156)
mroeschke Oct 16, 2020
4c395b0
BUG: Series.loc[[]] with non-unique MultiIndex #13691 (#37161)
jbrockmendel Oct 16, 2020
9140647
BUG: raise when doing arithmetic on DataFrame and list of iterables (…
AlexKirko Oct 16, 2020
58dcafa
BLD: update build requirement for py39 #37135 (#37144)
fangchenli Oct 16, 2020
7b31cbc
NIT: Format text.rst doc code (#37168)
dsaxton Oct 16, 2020
009ffa8
BUG: Fix parsing of ISO8601 durations (#37159)
mgmarino Oct 17, 2020
a8e2f92
REF: Simplifying creation of window indexers internally (#37177)
mroeschke Oct 17, 2020
1ce2a74
BUG: use cls instead of MultiIndex in MultiIndex classmethods (#37180)
jbrockmendel Oct 17, 2020
dcba608
BUG: RecursionError when selecting single column from IntervalIndex #…
jbrockmendel Oct 17, 2020
40b65da
DOC: Update dependency for to_markdown documentation (#36938)
Oct 17, 2020
32225b0
CLN: de-kluge (#37183)
arw2019 Oct 17, 2020
0a5a3a7
DOC: Add example to Series.divmod (#37185)
hongshaoyang Oct 17, 2020
7f910b5
CLN: ensure we pass correct type to DTI/TDI shallow_copy (#37171)
jbrockmendel Oct 17, 2020
56f03c7
ENH: DataFrame __divmod__, __rdivmod__ (#37165)
jbrockmendel Oct 17, 2020
0013472
BUG: algos.diff with datetimelike and NaT (#37140)
jbrockmendel Oct 17, 2020
98011a9
[REDO] CLN: core/dtypes/cast.py::maybe_downcast_to_dtype (#37126)
arw2019 Oct 17, 2020
9fed16c
PERF: regression in DataFrame reduction ops performance #37081 (#37118)
ukarroum Oct 17, 2020
7eb1063
fix doc isna (#37192)
erfannariman Oct 17, 2020
f1b2bb1
ENH: Enable short_caption in to_latex (#35668)
ivanovmg Oct 17, 2020
636941b
BUG: Fix isin with read-only target (#37181)
dsaxton Oct 17, 2020
85793fb
DOC: update io-excel tag (#37202)
knabben Oct 17, 2020
75a5fa7
CLN: clean up new detected trailing whitespace (#36588)
plammens Oct 18, 2020
87429a6
remove debug messages by adding semicolons (#37206)
partev Oct 18, 2020
de10e72
BUG: GroupBy().fillna() performance regression (#37149)
smithto1 Oct 18, 2020
3a2a190
TYP: core.window (#37212)
jbrockmendel Oct 18, 2020
61693b5
BUG: infer_dtype with decimal/complex (#37176)
jbrockmendel Oct 18, 2020
e3be31b
macOS is the new name for Mac OS (#37214)
partev Oct 18, 2020
54fa3da
BUG: MultiIndex comparison with tuple #21517 (#37170)
jbrockmendel Oct 18, 2020
ffaca2e
REF: reformat numpy.random-related code
onshek Oct 19, 2020
93e8e8f
UPD: revert pandas/_testing.py
onshek Oct 19, 2020
3f0e0cf
TST: collect unary tests (#37230)
jbrockmendel Oct 19, 2020
b6aa882
REF: move misplaced pd.concat tests (#37232)
jbrockmendel Oct 19, 2020
c15ded3
REF: collect tests by method (#37233)
jbrockmendel Oct 19, 2020
a34a408
fixed spelling errors in whatsnew, userguide, and ecosystem (#37253)
asharma13524 Oct 19, 2020
cd9c56e
CLN: remove unused arguments in _get_string_slice (#37225)
jbrockmendel Oct 19, 2020
0868d22
REF: move get_op_result_name out of ops.__init__ (#37231)
jbrockmendel Oct 19, 2020
aa43f17
REF: nargsort incorrectly calling _values_for_argsort (#37266)
jbrockmendel Oct 20, 2020
f2dcd24
BUG: Don't copy DataFrame columns as metadata (#37205)
TomAugspurger Oct 20, 2020
c15c6c3
CLN: de-duplicate in arithmetic/test_numeric (#37215)
ivanovmg Oct 20, 2020
13df3ec
DOC: Replace pandas on Ray in ecosystem.rst with Modin (#37249)
devin-petersohn Oct 20, 2020
294cbc8
BUG: with integer column labels, .info() throws KeyError (#37256)
MarcoGorelli Oct 20, 2020
c3f1e7f
CI move code directives to pre-commit, remove some outdated checks (#…
MarcoGorelli Oct 20, 2020
f23f8ac
CLN: clean-up test on addition of series/frames (#37238)
ivanovmg Oct 20, 2020
951c9c1
BUG: JoinUnit.is_na wrong for CategoricalDtype (#37196)
jbrockmendel Oct 20, 2020
055651b
BUG: Regression in Resample.apply raised error when apply affected on…
phofl Oct 20, 2020
01cf2f2
Tests for where() with categorical (#37182)
gabriellm1 Oct 20, 2020
c908355
TST: indexing tests for #21168, #27420, #15928, #30053 (#37228)
jbrockmendel Oct 20, 2020
de5349a
TST: use fixture (#37255)
jbrockmendel Oct 20, 2020
ce5a112
REGR: Make comparisons consistent for PeriodDtype (#37270)
dsaxton Oct 20, 2020
77811c7
ENH: implement matching warning message (#37263)
ivanovmg Oct 20, 2020
fc951f8
REF: collect tests by method (#37271)
jbrockmendel Oct 20, 2020
8dcf9b1
CLN: consolidate exception messages in datetimelike validate_listlike…
jbrockmendel Oct 20, 2020
2f55283
call __finalize__ in more methods (#37186)
arw2019 Oct 20, 2020
ba7cb27
DOC: fix a small typo (#37291)
partev Oct 20, 2020
2b89251
DOC: update the URL for the "Mailing List" (#37284)
partev Oct 20, 2020
4a3d8fa
TST/CLN: Split out some to_string tests (#37234)
dsaxton Oct 20, 2020
5b5f26d
CI: remove duplicated code check #36642 (#36716)
fangchenli Oct 20, 2020
71bd42b
BUG: Don't raise TypeError when converting NA from string to numeric …
dsaxton Oct 20, 2020
196bdcd
REF: dataframe formatters/outputs (#36510)
ivanovmg Oct 20, 2020
bbe8663
REF/TST: collect reindex tests (#37283)
jbrockmendel Oct 21, 2020
baddf02
CI: Check for inconsistent pandas namespace usage (#37188)
dsaxton Oct 21, 2020
c23ff03
CI: temporary skip parquet tz test for pyarrow>=2.0.0 (#37303)
jorisvandenbossche Oct 21, 2020
1c450d7
TST: correct parquet test expected partition column dtype for pyarrow…
jorisvandenbossche Oct 21, 2020
6430d53
TST: collect tests by method (#37300)
jbrockmendel Oct 21, 2020
021d831
CI: Add unwanted pattern check (#37298)
dsaxton Oct 21, 2020
8f472ae
REF: simplify info.py (#36752)
ivanovmg Oct 21, 2020
7e62f07
CLN: make PeriodArray signature match DTA/TDA (#37289)
jbrockmendel Oct 21, 2020
ce12627
REF/TST: collect fillna tests (#37281)
jbrockmendel Oct 21, 2020
4a08c02
CLN: _almost_ always rebox_native following _unbox (#37297)
jbrockmendel Oct 21, 2020
6ac3765
REF/TST: collect astype tests (#37282)
jbrockmendel Oct 21, 2020
a349462
DOC: update PeriodArray docstring (#37251)
arw2019 Oct 21, 2020
ac7ca23
ENH: DataFrame.to_parquet() returns bytes if path_or_buf not provided…
arw2019 Oct 21, 2020
bc6f982
TST/REF: rename test files (#37317)
jbrockmendel Oct 22, 2020
8f0591d
CLN: always rebox_native (#37313)
jbrockmendel Oct 22, 2020
ded5ea9
REF: de-duplicate DTA/TDA validators by standardizing exception messa…
jbrockmendel Oct 22, 2020
038aab9
Regression in offsets caused offsets to be no longer hashable (#37288)
phofl Oct 22, 2020
ef5ccfd
DOC: Add protocol value '5' to pickle #37316 (#37322)
botplex Oct 22, 2020
8a752af
TST/REF: method-specific files for lookup, get_value, set_value (#37325)
jbrockmendel Oct 22, 2020
01c554c
TST/REF: collect stack/unstack tests (#37314)
jbrockmendel Oct 22, 2020
f162aac
ENH: Support closed for fixed windows in rolling (#37207)
mroeschke Oct 22, 2020
dd25f1a
REF: eliminate method _write() in json writers (#36218)
ivanovmg Oct 22, 2020
39338e2
DOC: Fix typos and broken formatting (#37226)
sahidvelji Oct 22, 2020
6584099
TST/REF: collect tests by method (#37342)
jbrockmendel Oct 22, 2020
838cbd4
TST/REF: collect _libs tests (#37324)
jbrockmendel Oct 22, 2020
ef2e64d
TST: fixturize/parametrize test_eval to the bone (#37349)
jbrockmendel Oct 22, 2020
695e568
BUG: Index._id (#37321)
topper-123 Oct 22, 2020
2798350
TST/REF: collect tests by method (#37315)
jbrockmendel Oct 22, 2020
a26f34c
TST/REF: misplaced frame.indexing tests (#37319)
jbrockmendel Oct 22, 2020
99cb914
TST: parametrize slow test (#37339)
jbrockmendel Oct 22, 2020
affc4d5
CLN: Simplify gathering of results in aggregate (#37227)
rhshadrach Oct 22, 2020
1b7e3a6
CI move non-standard-import checks over to pre-commit (#37240)
MarcoGorelli Oct 22, 2020
f590254
DOC: add value counts as related method to count (#37209)
erictleung Oct 22, 2020
9fe5dba
REF: extract dialect validation (#37332)
ivanovmg Oct 23, 2020
4f5e0e0
BUG: .loc with MultiIndex with names[1] = 0 (#37194)
jbrockmendel Oct 23, 2020
23c41bd
BUG: record warnings related to DatetimeIndex (#37193)
ivanovmg Oct 23, 2020
af71aa1
BUG: Non deterministic level order in MultiIndex with join (#37199)
phofl Oct 23, 2020
6799824
CI/CLN: Add more test file linting (#37351)
dsaxton Oct 23, 2020
4aa41b8
TST: collect indexing tests by method (#37353)
jbrockmendel Oct 23, 2020
901b1a7
BUG: Ensure chunksize is set if not provided (#37302)
bashtage Oct 23, 2020
b49aeac
TST: moved file test_concat.py to folder ./concat/ (#37243) (#37360)
kamilt5 Oct 23, 2020
7dcaaf4
TYP: is_dtype_compat (#37340)
jbrockmendel Oct 23, 2020
c863dde
TST/REF: collect tests by method, some misplaced (#37354)
jbrockmendel Oct 23, 2020
f0ecfd8
API: require timezone match in DatetimeArray.take (#37356)
jbrockmendel Oct 23, 2020
9fd30b7
TST: split up test_concat.py #37243 - follows up (#37368)
kamilt5 Oct 23, 2020
a8f5477
TYP: use overload to refine return type of reset_index (#37137)
simonjayhawkins Oct 23, 2020
8610299
BUG: DataFrame[td64].sum(skipna=False) (#37148)
jbrockmendel Oct 24, 2020
d240cb8
BUG: Don't ignore na_rep in DataFrame.to_html (#36690)
dsaxton Oct 24, 2020
aa91eb4
CLN: de-duplicate _isnan (#37373)
jbrockmendel Oct 24, 2020
aff04ad
TST: on_offset_implementations closes #34751 (#37376)
jbrockmendel Oct 24, 2020
688923e
BUG: Call finalize in DataFrame.unstack (#37369)
mzeitlin11 Oct 24, 2020
66039b4
DOC: update development documentation for link to built docs #37248 (…
Oct 24, 2020
dce547e
DOC: Remove confusing description from `core.DataFrame.iterrows` (#37…
takegue Oct 24, 2020
35056ab
fix failing CI (#37383)
MarcoGorelli Oct 24, 2020
18b4864
TST/REF: collect tests by method (#37372)
jbrockmendel Oct 24, 2020
6a6ea15
DOC: Improve clarity and fix grammar (#37386)
sahidvelji Oct 25, 2020
50c8c69
DOC: add searchsorted examples #36411 (#37370)
Mikhaylov-yv Oct 25, 2020
35085ad
TST: examples from OP (#37090)
arw2019 Oct 25, 2020
d850140
CLN: Fix unwanted pattern in unittest (#37404)
phofl Oct 25, 2020
c10c101
TST: Different tests were collected between gw0 and gw1 (#37382)
simonjayhawkins Oct 25, 2020
d592e5e
CLN/TST: roll_sum/mean/var/skew/kurt: simplification for non-monotoni…
twoertwein Oct 25, 2020
0e5d004
REGR/PERF: Index.is_ (#37400)
topper-123 Oct 26, 2020
85621a4
TST/REF: collect tests by method (#37395)
jbrockmendel Oct 26, 2020
ebd9ebd
BUG: DataFrame.std(skipna=False) with td64 dtype (#37392)
jbrockmendel Oct 26, 2020
8da70fc
TST: Set timeoffset as the window parameter (#37407)
gabriellm1 Oct 26, 2020
c182d21
TST/CLN: misplaced factorize tests (#37411)
jbrockmendel Oct 26, 2020
428f33c
BUG: Series[td64].sum() wrong on empty series, closes #37151 (#37394)
jbrockmendel Oct 26, 2020
b151b04
CI move validate unwanted patterns over to pre-commit (#37379)
MarcoGorelli Oct 26, 2020
52361e1
TST/REF: collect tests by method (#37403)
jbrockmendel Oct 26, 2020
20a87aa
TST/REF: misplaced tests in tests.base (#37410)
jbrockmendel Oct 26, 2020
178acf6
CLN: nanops (#37396)
jbrockmendel Oct 26, 2020
91a2711
BUG: fix tab completion (#37173)
topper-123 Oct 26, 2020
57c06d9
DOC: small clean ups (#37412)
partev Oct 26, 2020
348dc2d
[TST]: Wrong Corr with Timedelta index (#36454)
phofl Oct 26, 2020
425ce1b
REGR: fix bug in DatetimeIndex slicing with irregular or unsorted ind…
CloseChoice Oct 26, 2020
c85fbc7
DOC: move release note for 35792 (#37417)
simonjayhawkins Oct 26, 2020
3c695dc
fix windows issue pre-commit (#37419)
MarcoGorelli Oct 26, 2020
3c8c4c9
PERF: ensure_string_array with non-numpy input array (#37371)
topper-123 Oct 26, 2020
8985801
TST/REF: collect tests by method from tests.internals (#37420)
jbrockmendel Oct 26, 2020
9700b5a
REF: avoid special-casing inside DTA/TDA.mean (#37422)
jbrockmendel Oct 26, 2020
5ce3989
TST/REF: misplaced tests in frame.test_dtypes (#37424)
jbrockmendel Oct 26, 2020
ea443de
TST/REF: collect tests by method (#37434)
jbrockmendel Oct 27, 2020
1820faa
CI: xfail windows numexpr test (#37435)
jbrockmendel Oct 27, 2020
c642fda
REGR: fix groupby std() with nullable dtypes (#37433)
jorisvandenbossche Oct 27, 2020
b39c0b5
Failing test_missing_required_dependency in pandas-wheels (#37428)
simonjayhawkins Oct 27, 2020
d6f646b
Fix regression for is_monotonic_increasing with nan in MultiIndex (#3…
phofl Oct 27, 2020
fabf03a
upgrade pygrep (#37440)
MarcoGorelli Oct 27, 2020
0078120
TST/REF: collect tests by method (#37430)
jbrockmendel Oct 27, 2020
efb068f
TST/REF: collect tests by method from generic (#37421)
jbrockmendel Oct 27, 2020
9c5500e
REGR: fix rank algo for read-only data (#37439)
jorisvandenbossche Oct 27, 2020
5292533
Fix regression in iloc with boolean list (#37432)
phofl Oct 28, 2020
8501994
TST/REF: collect multilevel tests by method (#37431)
jbrockmendel Oct 28, 2020
d89331b
CI: docker 32-bit linux build #32709 (#35898)
fangchenli Oct 28, 2020
e149880
TST: split up test_concat.py #37243 - more follows up (#37387)
kamilt5 Oct 28, 2020
d321be6
TST: Update unreliable num precision component of test_binary_arith_o…
avinashpancham Oct 28, 2020
12ce683
CLN: Add init files in test folders (#37474)
phofl Oct 28, 2020
e1624e5
TYP: DatetimeIndex, TimedeltaIndex (#37365)
jbrockmendel Oct 29, 2020
31e12a7
TST: check_comprehensiveness compat for --lf and -k (#37402)
jbrockmendel Oct 29, 2020
d391e0b
TST/REF: collect tests by method (#37449)
jbrockmendel Oct 29, 2020
be1728a
TST/REF: collect tests by method from test_io (#37451)
jbrockmendel Oct 29, 2020
fe7fcc7
TST/REF: misplaced .xs tests (#37456)
jbrockmendel Oct 29, 2020
72acb78
TST/REF: finish collecting sample tests (#37470)
jbrockmendel Oct 29, 2020
2039d4c
TST: collect tests by method from test_api (#37472)
jbrockmendel Oct 29, 2020
2db4e34
REF: helper to ensure column indexer is iterable (#37475)
jbrockmendel Oct 29, 2020
cc517c7
BUG: DataFrame.min/max dt64 with skipna=False (#37425)
jbrockmendel Oct 29, 2020
d2c0674
PERF: faster dir() calls (#37450)
topper-123 Oct 29, 2020
10e5ad7
CLN: Deprecate dayofweek/hello day_of_week (#9606) (#37390)
abhishekmangla Oct 29, 2020
290c58a
DOC: Updated resample.py and groupby.py to fix SA04 Errors (#37219)
nagesh-chowdaiah Oct 29, 2020
5532ae8
TYP: indexes (#37224)
jbrockmendel Oct 29, 2020
50a92fb
Merge branch 'issue37053-unify-numpy-related-imports-in-pandas/tests/…
onshek Oct 29, 2020
d5fbc76
Revert "Merge branch 'issue37053-unify-numpy-related-imports-in-panda…
onshek Oct 29, 2020
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
  •  
  •  
  •  
6 changes: 0 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,6 @@ jobs:
ci/code_checks.sh lint
if: always()

- name: Dependencies consistency
run: |
source activate pandas-dev
ci/code_checks.sh dependencies
if: always()

- name: Checks on imported code
run: |
source activate pandas-dev
Expand Down
70 changes: 65 additions & 5 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ repos:
- id: flake8
name: flake8 (cython template)
files: \.pxi\.in$
types:
- file
types: [text]
args: [--append-config=flake8/cython-template.cfg]
- repo: https://github.com/PyCQA/isort
rev: 5.6.3
Expand All @@ -32,16 +31,20 @@ repos:
- id: pyupgrade
args: [--py37-plus]
- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.6.0
rev: v1.7.0
hooks:
- id: rst-backticks
- id: rst-directive-colons
types: [text]
- id: rst-inline-touching-normal
types: [text]
- repo: local
hooks:
- id: pip_to_conda
name: Generate pip dependency from conda
description: This hook checks if the conda environment.yml and requirements-dev.txt are equal
language: python
entry: python -m scripts.generate_pip_deps_from_conda
entry: python scripts/generate_pip_deps_from_conda.py
files: ^(environment.yml|requirements-dev.txt)$
pass_filenames: false
additional_dependencies: [pyyaml]
Expand All @@ -53,6 +56,61 @@ repos:
types: [rst]
args: [--filename=*.rst]
additional_dependencies: [flake8-rst==0.7.0, flake8==3.7.9]
- id: non-standard-imports
name: Check for non-standard imports
language: pygrep
entry: |
(?x)
# Check for imports from pandas.core.common instead of `import pandas.core.common as com`
from\ pandas\.core\.common\ import|
from\ pandas\.core\ import\ common|

# Check for imports from collections.abc instead of `from collections import abc`
from\ collections\.abc\ import|

from\ numpy\ import\ nan
types: [python]
- id: non-standard-imports-in-tests
name: Check for non-standard imports in test suite
language: pygrep
entry: |
(?x)
# Check for imports from pandas._testing instead of `import pandas._testing as tm`
from\ pandas\._testing\ import|
from\ pandas\ import\ _testing\ as\ tm|

# No direct imports from conftest
conftest\ import|
import\ conftest
types: [python]
files: ^pandas/tests/
- id: incorrect-code-directives
name: Check for incorrect code block or IPython directives
language: pygrep
entry: (\.\. code-block ::|\.\. ipython ::)
files: \.(py|pyx|rst)$
- id: unwanted-patterns-strings-to-concatenate
name: Check for use of not concatenated strings
language: python
entry: python scripts/validate_unwanted_patterns.py --validation-type="strings_to_concatenate"
files: \.(py|pyx|pxd|pxi)$
- id: unwanted-patterns-strings-with-wrong-placed-whitespace
name: Check for strings with wrong placed spaces
language: python
entry: python scripts/validate_unwanted_patterns.py --validation-type="strings_with_wrong_placed_whitespace"
files: \.(py|pyx|pxd|pxi)$
- id: unwanted-patterns-private-import-across-module
name: Check for import of private attributes across modules
language: python
entry: python scripts/validate_unwanted_patterns.py --validation-type="private_import_across_module"
types: [python]
exclude: ^(asv_bench|pandas/_vendored|pandas/tests|doc)/
- id: unwanted-patterns-private-function-across-module
name: Check for use of private functions across modules
language: python
entry: python scripts/validate_unwanted_patterns.py --validation-type="private_function_across_module"
types: [python]
exclude: ^(asv_bench|pandas/_vendored|pandas/tests|doc)/
- repo: https://github.com/asottile/yesqa
rev: v1.2.2
hooks:
Expand All @@ -61,4 +119,6 @@ repos:
rev: v3.2.0
hooks:
- id: end-of-file-fixer
exclude: '.html$|^LICENSES/|.csv$|.txt$|.svg$|.py$'
exclude: ^LICENSES/|\.(html|csv|txt|svg|py)$
- id: trailing-whitespace
exclude: \.(html|svg)$
20 changes: 20 additions & 0 deletions asv_bench/benchmarks/groupby.py
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,26 @@ def time_category_size(self):
self.draws.groupby(self.cats).size()


class FillNA:
def setup(self):
N = 100
self.df = DataFrame(
{"group": [1] * N + [2] * N, "value": [np.nan, 1.0] * N}
).set_index("group")

def time_df_ffill(self):
self.df.groupby("group").fillna(method="ffill")

def time_df_bfill(self):
self.df.groupby("group").fillna(method="bfill")

def time_srs_ffill(self):
self.df.groupby("group")["value"].fillna(method="ffill")

def time_srs_bfill(self):
self.df.groupby("group")["value"].fillna(method="bfill")


class GroupByMethods:

param_names = ["dtype", "method", "application"]
Expand Down
6 changes: 6 additions & 0 deletions asv_bench/benchmarks/io/pickle.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,11 @@ def time_read_pickle(self):
def time_write_pickle(self):
self.df.to_pickle(self.fname)

def peakmem_read_pickle(self):
read_pickle(self.fname)

def peakmem_write_pickle(self):
self.df.to_pickle(self.fname)


from ..pandas_vb_common import setup # noqa: F401 isort:skip
18 changes: 17 additions & 1 deletion asv_bench/benchmarks/strings.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import numpy as np

from pandas import DataFrame, Series
from pandas import Categorical, DataFrame, Series

from .pandas_vb_common import tm

Expand All @@ -16,6 +16,10 @@ def setup(self, dtype):
self.series_arr = tm.rands_array(nchars=10, size=10 ** 5)
self.frame_arr = self.series_arr.reshape((50_000, 2)).copy()

# GH37371. Testing construction of string series/frames from ExtensionArrays
self.series_cat_arr = Categorical(self.series_arr)
self.frame_cat_arr = Categorical(self.frame_arr)

def time_series_construction(self, dtype):
Series(self.series_arr, dtype=dtype)

Expand All @@ -28,6 +32,18 @@ def time_frame_construction(self, dtype):
def peakmem_frame_construction(self, dtype):
DataFrame(self.frame_arr, dtype=dtype)

def time_cat_series_construction(self, dtype):
Series(self.series_cat_arr, dtype=dtype)

def peakmem_cat_series_construction(self, dtype):
Series(self.series_cat_arr, dtype=dtype)

def time_cat_frame_construction(self, dtype):
DataFrame(self.frame_cat_arr, dtype=dtype)

def peakmem_cat_frame_construction(self, dtype):
DataFrame(self.frame_cat_arr, dtype=dtype)


class Methods:
def setup(self):
Expand Down
16 changes: 13 additions & 3 deletions asv_bench/benchmarks/timeseries.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,14 @@
import dateutil
import numpy as np

from pandas import DataFrame, Series, date_range, period_range, to_datetime
from pandas import (
DataFrame,
Series,
date_range,
period_range,
timedelta_range,
to_datetime,
)

from pandas.tseries.frequencies import infer_freq

Expand Down Expand Up @@ -121,12 +128,15 @@ def time_convert(self):

class Iteration:

params = [date_range, period_range]
params = [date_range, period_range, timedelta_range]
param_names = ["time_index"]

def setup(self, time_index):
N = 10 ** 6
self.idx = time_index(start="20140101", freq="T", periods=N)
if time_index is timedelta_range:
self.idx = time_index(start=0, freq="T", periods=N)
else:
self.idx = time_index(start="20140101", freq="T", periods=N)
self.exit = 10000

def time_iter(self, time_index):
Expand Down
25 changes: 25 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,28 @@ jobs:
parameters:
name: Windows
vmImage: vs2017-win2016

- job: py37_32bit
pool:
vmImage: ubuntu-18.04

steps:
- script: |
docker pull quay.io/pypa/manylinux2014_i686
docker run -v $(pwd):/pandas quay.io/pypa/manylinux2014_i686 \
/bin/bash -xc "cd pandas && \
/opt/python/cp37-cp37m/bin/python -m venv ~/virtualenvs/pandas-dev && \
. ~/virtualenvs/pandas-dev/bin/activate && \
python -m pip install --no-deps -U pip wheel setuptools && \
pip install cython numpy python-dateutil pytz pytest pytest-xdist hypothesis pytest-azurepipelines && \
python setup.py build_ext -q -i -j2 && \
python -m pip install --no-build-isolation -e . && \
pytest -m 'not slow and not network and not clipboard' pandas --junitxml=test-data.xml"
displayName: 'Run 32-bit manylinux2014 Docker Build / Tests'

- task: PublishTestResults@2
condition: succeededOrFailed()
inputs:
testResultsFiles: '**/test-*.xml'
failTaskOnFailedTests: true
testRunTitle: 'Publish test results for Python 3.7-32 bit full Linux'
Loading