Skip to content

updating repo #2

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

Merged
merged 71 commits into from
Dec 31, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
71 commits
Select commit Hold shift + click to select a range
4601d2c
DOC: 1.2.0 release date (#38678)
simonjayhawkins Dec 26, 2020
87d9c8f
DOC: Start v1.2.1 release notes (#38704)
simonjayhawkins Dec 26, 2020
bc29dfb
pin jedi version<0.18.0 (#38715)
arw2019 Dec 27, 2020
edbd479
Develop pre check (#38663)
cjlynch278 Dec 27, 2020
6e18023
fix link redirect to NumFOCUS (#38713)
partev Dec 27, 2020
68420c9
DOC: reference the visualization page from the ecosystem one (#38731)
afeld Dec 27, 2020
4fe17a4
CI: Move sql builds from Travis to Github actions (#38344)
fangchenli Dec 27, 2020
e4f35f4
TST: GH30999 Add match=msg to all pytest.raises in tests/generic/meth…
moink Dec 27, 2020
6d7b1c5
Slicing columns with mixed types <str>,<int> fails with ValueError #2…
hungyiwu Dec 27, 2020
382e806
TST: Add match=msg to all pytest.raises in pandas/tests/io/json (#38705)
moink Dec 27, 2020
dc09a8a
ENH: Add method argument to rolling constructor to allow table-wise r…
mroeschke Dec 27, 2020
9f1a41d
REF: make pd._testing a directory (#38689)
jbrockmendel Dec 28, 2020
51941bd
TST: GH30999 Add match=msg to all but two pytest.raises in tests/io (…
moink Dec 28, 2020
279d55d
TST: Remove broken test for deprecated functionality (#38707)
theOehrly Dec 28, 2020
947e322
⬆️ UPGRADE: Autoupdate pre-commit config (#38747)
github-actions[bot] Dec 28, 2020
0b7ce00
TST: Inconsistent behavior of .replace() in Int64 series with NA (#3…
ftrihardjo Dec 28, 2020
d717eb1
Revert "TST: Bare pytest raises" in base extension tests (#38748)
jorisvandenbossche Dec 28, 2020
c698246
CLN: remove duplicate banklist.html file (#38739)
afeld Dec 28, 2020
6452f2c
TST: implement tm.check_setitem_equivalents (#38688)
jbrockmendel Dec 28, 2020
fc2cc7c
BUG: loc with empty multiindex raises exception (#38711)
kasim95 Dec 28, 2020
26a679a
DOC: add Comparison with Excel (#38554)
afeld Dec 28, 2020
760c6ff
BUG: Fix Index.__repr__ when `display.max_seq_items` = 1 (#38443)
skvrahul Dec 28, 2020
6210077
DEPR: Hide deprecated attrs _AXIS_NAMES & _AXIS_NUMBERS (#38740)
topper-123 Dec 28, 2020
693cfd8
CLN: simplify tm.decompress_file (#38758)
twoertwein Dec 28, 2020
51d8509
CI: print build version (#38761)
fangchenli Dec 28, 2020
f73bd7c
BUG: IntervalIndex, PeriodIndex, DatetimeIndex symmetric_difference w…
jbrockmendel Dec 28, 2020
8ff5c42
TST: share tz_convert/tz_localize tests (#38756)
jbrockmendel Dec 28, 2020
31e0743
REF: implement nested_data_to_arrays (#38757)
jbrockmendel Dec 29, 2020
fb35344
REGR: to_csv created corrupt ZIP files when there are more rows than …
twoertwein Dec 29, 2020
7f912a4
BUG: float-like string, trailing 0 truncation (#38759)
mzeitlin11 Dec 29, 2020
a27244d
BLD: fix build failure py3.9.1 on OSX (#38766)
jbrockmendel Dec 29, 2020
af428c9
CLN: rolling.py and window/aggregations.pyx (#38768)
mroeschke Dec 29, 2020
ddc0256
DOC: suppress debug messages when displaying plots (#38770)
partev Dec 29, 2020
5a6a0f7
CLN: Add typing for dtype argument in io/sql.py (#38680)
avinashpancham Dec 29, 2020
e752928
CLN: NDFrame._where (#38742)
jbrockmendel Dec 29, 2020
d201fcc
CI,STYLE: add spell check? (#38776)
MarcoGorelli Dec 29, 2020
db1be4d
BUG: Series.where casting dt64 to int64 (#38073)
jbrockmendel Dec 29, 2020
beb4f1b
REF: Index.__new__ (#38665)
jbrockmendel Dec 29, 2020
a37f1a4
BUG/REG: RollingGroupby MultiIndex levels dropped (#38737)
mroeschke Dec 29, 2020
1d19629
BUG: Series construction with mismatched dt64 data vs td64 dtype (#38…
jbrockmendel Dec 29, 2020
508d0d2
BUG: Ensure series/frame mode() keeps int index (#38732)
mzeitlin11 Dec 29, 2020
9415d10
TYP: ExtensionIndex (#38783)
jbrockmendel Dec 29, 2020
2ae017b
BUG: Fix regression for groupby.indices in case of unused categories …
phofl Dec 29, 2020
0976c4c
TST: Isin converted floats unnecessarily to int causing rounding issu…
phofl Dec 29, 2020
f58d815
TST: GH38718 fix an xfail test and add new test for expected behaviou…
moink Dec 30, 2020
fdc2585
BUG: inconsistency between frame.any/all with dt64 vs dt64tz (#38723)
jbrockmendel Dec 30, 2020
7323d19
TST: GH30999 add msg to pytest.raises in simple cases where modules h…
moink Dec 30, 2020
f5ef132
TST: GH30999 Add match=msg to all pytest.raises in pandas/tests/resha…
moink Dec 30, 2020
a478fde
BUG: Categorical with non-nano dt64 (#38791)
jbrockmendel Dec 30, 2020
4cf561f
TST: GH30999 add msg to pytest.raises in pandas/tests/window/moments …
moink Dec 30, 2020
52112d1
DOC: Corrected Out-of-date list of sort algorithms (#38503)
FullBeardDev Dec 30, 2020
bbd0f66
BUG: loc dropping levels when df has only one row (#38150)
phofl Dec 30, 2020
f44f3ec
DOC: make shared includes for describing the datasets in the Getting …
afeld Dec 30, 2020
94810d1
ENH: support downcasting of nullable EAs in pd.to_numeric (#38746)
arw2019 Dec 30, 2020
52bdfdc
BUG: Fix pd.json_normalize to not skip the first element of a generat…
avinashpancham Dec 30, 2020
e85d078
DOC: chat-ops (#38754)
1nF0rmed Dec 30, 2020
f1d4026
PERF: Introducing hash tables for complex64 and complex128 (#38179)
realead Dec 30, 2020
b438f74
BUG: Fix precise_xstrtod segfault on long exponent (#38789)
mzeitlin11 Dec 30, 2020
413fc95
MAINT: regex char class improve (#38817)
tylerjereddy Dec 30, 2020
92bb0c1
TST/CLN: Remove duplicate abc tests (#38818)
rhshadrach Dec 30, 2020
5af8a55
REF: implement array_algos.putmask (#38793)
jbrockmendel Dec 30, 2020
ee77500
TST: GH30999 Add match=msg to all pytest.raises in tests/reductions a…
moink Dec 30, 2020
387d485
BUG: DataFrame.rank with np.inf and np.nan (#38681)
mzeitlin11 Dec 30, 2020
8232658
REGR: read_excel does not work for most file handles (#38819)
twoertwein Dec 30, 2020
3d351ed
CLN: Add typing for dtype argument in io directory (GH38808) (#38814)
avinashpancham Dec 30, 2020
4edb52b
REGR: groupby.sem with nuisance columns (#38816)
rhshadrach Dec 30, 2020
59c5be2
Parametrized groupby allowlist test (#38829)
WillAyd Dec 31, 2020
bd3f2a4
REF: move putmask internals in array_algos.putmask (#38833)
jbrockmendel Dec 31, 2020
109451d
BUG: astype_nansafe with copy=False (#38835)
jbrockmendel Dec 31, 2020
cc9c9b9
BUG: IntervalIndex.intersection returning duplicates (#38834)
phofl Dec 31, 2020
72ad717
CLN: add typing to dtype arg in selection of files in core/arrays (GH…
avinashpancham Dec 31, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
186 changes: 186 additions & 0 deletions .github/workflows/database.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,186 @@
name: Database

on:
push:
branches: [master]
pull_request:
branches:
- master
- 1.2.x

env:
PYTEST_WORKERS: "auto"
PANDAS_CI: 1
PATTERN: ((not slow and not network and not clipboard) or (single and db))

jobs:
Linux_py37_locale:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}

env:
ENV_FILE: ci/deps/actions-37-locale.yaml
LOCALE_OVERRIDE: zh_CN.UTF-8

services:
mysql:
image: mysql
env:
MYSQL_ALLOW_EMPTY_PASSWORD: yes
MYSQL_DATABASE: pandas
options: >-
--health-cmd "mysqladmin ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 3306:3306

postgres:
image: postgres
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: pandas
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432

steps:
- name: Checkout
uses: actions/checkout@v1

- name: Cache conda
uses: actions/cache@v1
env:
CACHE_NUMBER: 0
with:
path: ~/conda_pkgs_dir
key: ${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{
hashFiles('${{ env.ENV_FILE }}') }}

- uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: pandas-dev
channel-priority: strict
environment-file: ${{ env.ENV_FILE }}
use-only-tar-bz2: true

- name: Environment Detail
run: |
conda info
conda list

- name: Build Pandas
run: |
python setup.py build_ext -j 2
python -m pip install -e . --no-build-isolation --no-use-pep517

- name: Test
run: ci/run_tests.sh
if: always()

- name: Build Version
run: pushd /tmp && python -c "import pandas; pandas.show_versions();" && popd

- name: Publish test results
uses: actions/upload-artifact@master
with:
name: Test results
path: test-data.xml
if: failure()

- name: Print skipped tests
run: python ci/print_skipped.py

Linux_py37_cov:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}

env:
ENV_FILE: ci/deps/actions-37-cov.yaml
PANDAS_TESTING_MODE: deprecate
COVERAGE: true

services:
mysql:
image: mysql
env:
MYSQL_ALLOW_EMPTY_PASSWORD: yes
MYSQL_DATABASE: pandas
options: >-
--health-cmd "mysqladmin ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 3306:3306

postgres:
image: postgres
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: pandas
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432

steps:
- name: Checkout
uses: actions/checkout@v1

- name: Cache conda
uses: actions/cache@v1
env:
CACHE_NUMBER: 0
with:
path: ~/conda_pkgs_dir
key: ${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{
hashFiles('${{ env.ENV_FILE }}') }}

- uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: pandas-dev
channel-priority: strict
environment-file: ${{ env.ENV_FILE }}
use-only-tar-bz2: true

- name: Environment Detail
run: |
conda info
conda list

- name: Build Pandas
run: |
python setup.py build_ext -j 2
python -m pip install -e . --no-build-isolation --no-use-pep517

- name: Test
run: ci/run_tests.sh
if: always()

- name: Build Version
run: pushd /tmp && python -c "import pandas; pandas.show_versions();" && popd

- name: Publish test results
uses: actions/upload-artifact@master
with:
name: Test results
path: test-data.xml
if: failure()

- name: Print skipped tests
run: python ci/print_skipped.py
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ asv_bench/pandas/
doc/source/generated
doc/source/user_guide/styled.xlsx
doc/source/reference/api
doc/source/_static
doc/source/_static/*.html
doc/source/vbench
doc/source/vbench.rst
doc/source/index.rst
Expand Down
13 changes: 11 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
minimum_pre_commit_version: '2.9.2'
minimum_pre_commit_version: 2.9.2
repos:
- repo: https://github.com/python/black
rev: 20.8b1
Expand Down Expand Up @@ -89,6 +89,9 @@ repos:
# No direct imports from conftest
conftest\ import|
import\ conftest

# Check for use of pandas.testing instead of tm
pd\.testing\.
types: [python]
files: ^pandas/tests/
- id: incorrect-code-directives
Expand Down Expand Up @@ -159,9 +162,15 @@ repos:
hooks:
- id: yesqa
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.3.0
rev: v3.4.0
hooks:
- id: end-of-file-fixer
exclude: ^LICENSES/|\.(html|csv|txt|svg|py)$
- id: trailing-whitespace
exclude: \.(html|svg)$
- repo: https://github.com/codespell-project/codespell
rev: v2.0.0
hooks:
- id: codespell
types_or: [python, rst, markdown]
files: ^pandas/core/
17 changes: 1 addition & 16 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ services:
# travis cache --delete inside the project directory from the travis command line client
# The cache directories will be deleted if anything in ci/ changes in a commit
cache:
apt: true
ccache: true
directories:
- $HOME/.cache # cython cache

env:
global:
- PYTEST_WORKERS="auto"
# create a github personal access token
# cd pandas-dev/pandas
# travis encrypt 'PANDAS_GH_TOKEN=personal_access_token' -r pandas-dev/pandas
Expand All @@ -35,25 +35,10 @@ matrix:
fast_finish: true

include:
- env:
- JOB="3.7, locale" ENV_FILE="ci/deps/travis-37-locale.yaml" PATTERN="((not slow and not network and not clipboard) or (single and db))" LOCALE_OVERRIDE="zh_CN.UTF-8" SQL="1"
services:
- mysql
- postgresql

- arch: arm64
env:
- JOB="3.7, arm64" PYTEST_WORKERS=1 ENV_FILE="ci/deps/travis-37-arm64.yaml" PATTERN="(not slow and not network and not clipboard and not arm_slow)"

- env:
# Enabling Deprecations when running tests
# PANDAS_TESTING_MODE="deprecate" causes DeprecationWarning messages to be displayed in the logs
# See pandas/_testing.py for more details.
- JOB="3.7, coverage" ENV_FILE="ci/deps/travis-37-cov.yaml" PATTERN="((not slow and not network and not clipboard) or (single and db))" PANDAS_TESTING_MODE="deprecate" COVERAGE=true SQL="1"
services:
- mysql
- postgresql

allow_failures:
# Moved to allowed_failures 2020-09-29 due to timeouts https://github.com/pandas-dev/pandas/issues/36719
- arch: arm64
Expand Down
18 changes: 18 additions & 0 deletions asv_bench/benchmarks/rolling.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,4 +252,22 @@ def time_groupby_mean(self, engine):
self.gb_ewm.mean(engine=engine)


def table_method_func(x):
return np.sum(x, axis=0) + 1


class TableMethod:

params = ["single", "table"]
param_names = ["method"]

def setup(self, method):
self.df = pd.DataFrame(np.random.randn(10, 1000))

def time_apply(self, method):
self.df.rolling(2, method=method).apply(
table_method_func, raw=True, engine="numba"
)


from .pandas_vb_common import setup # noqa: F401 isort:skip
2 changes: 1 addition & 1 deletion ci/deps/travis-37-cov.yaml → ci/deps/actions-37-cov.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ dependencies:
- beautifulsoup4
- botocore>=1.11
- dask
- fastparquet>=0.3.2
- fastparquet>=0.4.0
- fsspec>=0.7.4
- gcsfs>=0.6.0
- geopandas
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
name: pandas-dev
channels:
- defaults
- conda-forge
dependencies:
- python=3.7.*
Expand All @@ -18,9 +17,9 @@ dependencies:

# optional
- beautifulsoup4
- blosc=1.15.0
- blosc=1.17.0
- python-blosc
- fastparquet=0.3.2
- fastparquet=0.4.0
- html5lib
- ipython
- jinja2
Expand All @@ -43,5 +42,5 @@ dependencies:

# sql
- psycopg2=2.7
- pymysql=0.7.11
- pymysql=0.8.1
- sqlalchemy=1.3.0
1 change: 1 addition & 0 deletions ci/deps/azure-38-locale.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ dependencies:
- html5lib
- ipython
- jinja2
- jedi<0.18.0
- lxml
- matplotlib <3.3.0
- moto
Expand Down
1 change: 0 additions & 1 deletion ci/deps/azure-38-slow.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
name: pandas-dev
channels:
- defaults
- conda-forge
dependencies:
- python=3.8.*
Expand Down
2 changes: 1 addition & 1 deletion ci/deps/azure-windows-38.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ dependencies:
# pandas dependencies
- blosc
- bottleneck
- fastparquet>=0.3.2
- fastparquet>=0.4.0
- flask
- fsspec>=0.8.0
- matplotlib=3.1.3
Expand Down
Loading