Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
7 changes: 7 additions & 0 deletions ci/docker/conda-python-pandas.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@ FROM ${repo}:${arch}-conda-python-${python}

ARG pandas=latest
ARG numpy=latest

# the doc builds are using the conda-python-pandas image,
# so ensure to install doc requirements
COPY ci/conda_env_sphinx.txt /arrow/ci/
RUN mamba install -q -y --file arrow/ci/conda_env_sphinx.txt && \
mamba clean --all

COPY ci/scripts/install_pandas.sh /arrow/ci/scripts/
RUN mamba uninstall -q -y numpy && \
/arrow/ci/scripts/install_pandas.sh ${pandas} ${numpy}
2 changes: 0 additions & 2 deletions ci/docker/conda-python.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,9 @@ FROM ${repo}:${arch}-conda-cpp
# install python specific packages
ARG python=3.8
COPY ci/conda_env_python.txt \
ci/conda_env_sphinx.txt \
/arrow/ci/
RUN mamba install -q -y \
--file arrow/ci/conda_env_python.txt \
--file arrow/ci/conda_env_sphinx.txt \
gdb \
python=${python} \
nomkl && \
Expand Down
2 changes: 2 additions & 0 deletions python/pyarrow/tests/test_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -3230,6 +3230,7 @@ def test_json_format(tempdir, dataset_reader):
assert result.equals(table)


@pytest.mark.pandas
def test_json_format_options(tempdir, dataset_reader):
table = pa.table({'a': pa.array([1, 2, 3], type="int64"),
'b': pa.array([.1, .2, .3], type="float64")})
Expand All @@ -3250,6 +3251,7 @@ def test_json_format_options(tempdir, dataset_reader):
assert result.equals(table)


@pytest.mark.pandas
def test_json_fragment_options(tempdir, dataset_reader):
table = pa.table({'a': pa.array([1, 2, 3], type="int64"),
'b': pa.array([.1, .2, .3], type="float64")})
Expand Down
3 changes: 2 additions & 1 deletion python/pyarrow/tests/test_extension_type.py
Original file line number Diff line number Diff line change
Expand Up @@ -1096,7 +1096,8 @@ def test_empty_take():
([1, 2, 3], IntegerType),
(["cat", "dog", "horse"], LabelType)
))
@pytest.mark.parametrize("into", ("to_numpy", "to_pandas"))
@pytest.mark.parametrize(
"into", ["to_numpy", pytest.param("to_pandas", marks=pytest.mark.pandas)])
def test_extension_array_to_numpy_pandas(data, ty, into):
storage = pa.array(data)
ext_arr = pa.ExtensionArray.from_storage(ty(), storage)
Expand Down