Skip to content

Commit 4c24a57

Browse files
Merge branch 'fix-25959' of https://github.com/ThomasKluiters/pandas into fix-25959
2 parents c4169b6 + 5040801 commit 4c24a57

File tree

157 files changed

+1402
-1547
lines changed

Some content is hidden

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

157 files changed

+1402
-1547
lines changed

.travis.yml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -82,15 +82,10 @@ before_install:
8282
install:
8383
- echo "install start"
8484
- ci/prep_cython_cache.sh
85-
- ci/install_travis.sh
85+
- ci/setup_env.sh
8686
- ci/submit_cython_cache.sh
8787
- echo "install done"
8888

89-
before_script:
90-
- ci/install_db_travis.sh
91-
- export DISPLAY=":99.0"
92-
- ci/before_script_travis.sh
93-
9489
script:
9590
- echo "script start"
9691
- source activate pandas-dev

asv_bench/benchmarks/io/csv.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import numpy as np
55
import pandas.util.testing as tm
66
from pandas import DataFrame, Categorical, date_range, read_csv
7-
from pandas.compat import cStringIO as StringIO
7+
from io import StringIO
88

99
from ..pandas_vb_common import BaseIO
1010

asv_bench/benchmarks/io/excel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
from io import BytesIO
12
import numpy as np
23
from pandas import DataFrame, date_range, ExcelWriter, read_excel
3-
from pandas.compat import BytesIO
44
import pandas.util.testing as tm
55

66

azure-pipelines.yml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,8 @@ jobs:
3939
- script: |
4040
export PATH=$HOME/miniconda3/bin:$PATH
4141
sudo apt-get install -y libc6-dev-i386
42-
ci/incremental/install_miniconda.sh
43-
ci/incremental/setup_conda_environment.sh
44-
displayName: 'Set up environment'
42+
ci/setup_env.sh
43+
displayName: 'Setup environment and build pandas'
4544
condition: true
4645
4746
# Do not require pandas
@@ -59,13 +58,6 @@ jobs:
5958
displayName: 'Dependencies consistency'
6059
condition: true
6160
62-
- script: |
63-
export PATH=$HOME/miniconda3/bin:$PATH
64-
source activate pandas-dev
65-
ci/incremental/build.sh
66-
displayName: 'Build'
67-
condition: true
68-
6961
# Require pandas
7062
- script: |
7163
export PATH=$HOME/miniconda3/bin:$PATH

ci/azure/posix.yml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -50,17 +50,9 @@ jobs:
5050
steps:
5151
- script: |
5252
if [ "$(uname)" == "Linux" ]; then sudo apt-get install -y libc6-dev-i386 $EXTRA_APT; fi
53-
echo "Installing Miniconda"
54-
ci/incremental/install_miniconda.sh
55-
export PATH=$HOME/miniconda3/bin:$PATH
56-
echo "Setting up Conda environment"
57-
ci/incremental/setup_conda_environment.sh
58-
displayName: 'Before Install'
59-
- script: |
60-
export PATH=$HOME/miniconda3/bin:$PATH
61-
source activate pandas-dev
62-
ci/incremental/build.sh
63-
displayName: 'Build'
53+
echo "Creating Environment"
54+
ci/setup_env.sh
55+
displayName: 'Setup environment and build pandas'
6456
- script: |
6557
export PATH=$HOME/miniconda3/bin:$PATH
6658
source activate pandas-dev

ci/before_script_travis.sh

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

ci/code_checks.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,10 @@ fi
111111
if [[ -z "$CHECK" || "$CHECK" == "patterns" ]]; then
112112

113113
# Check for imports from pandas.core.common instead of `import pandas.core.common as com`
114+
# Check for imports from collections.abc instead of `from collections import abc`
114115
MSG='Check for non-standard imports' ; echo $MSG
115116
invgrep -R --include="*.py*" -E "from pandas.core.common import " pandas
117+
invgrep -R --include="*.py*" -E "from collections.abc import " pandas
116118
# invgrep -R --include="*.py*" -E "from numpy import nan " pandas # GH#24822 not yet implemented since the offending imports have not all been removed
117119
RET=$(($RET + $?)) ; echo $MSG "DONE"
118120

ci/deps/azure-35-compat.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ dependencies:
2323
- pytest-xdist
2424
- pytest-mock
2525
- isort
26+
- pip
2627
- pip:
2728
# for python 3.5, pytest>=4.0.2 is not available in conda
2829
- pytest>=4.0.2

ci/deps/azure-36-locale.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,6 @@ dependencies:
2525
- pytest-mock
2626
- hypothesis>=3.58.0
2727
- isort
28+
- pip
2829
- pip:
2930
- html5lib==1.0b2

ci/deps/azure-36-locale_slow.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,6 @@ dependencies:
3131
- pytest-mock
3232
- moto
3333
- isort
34+
- pip
3435
- pip:
3536
- hypothesis>=3.58.0

0 commit comments

Comments
 (0)