mirror of
https://github.com/apache/arrow.git
synced 2026-10-28 16:47:19 +08:00
### Rationale for this change pandas 3.0.0 deprecated constructing or casting to a `Categorical` with non-NA values that are not present in the specified `dtype.categories`. This surfaces as DeprecationWarnings in the PyArrow test suite when run against pandas >= 3.0 (GH-49255), in test_category and test_category_implicit_from_pandas. ### What changes are included in this PR? - test_category: remove the `cat_strings_with_na` column (relied on silent 'qux' -> NaN; redundant, cat_strings already carries nulls). - test_category_implicit_from_pandas: use explicit None (['a','b',None]) instead of out-of-category 'c'. ### Are these changes tested? Yes - test-only. Verified no DeprecationWarning under pandas 3.0.3. ### Are there any user-facing changes? No. Closes #49255. * GitHub Issue: #49255 Authored-by: GujaLomsadze <lomsadze.guja@gmail.com> Signed-off-by: Rok Mihevc <rok@mihevc.org>
41 lines
1.5 KiB
INI
41 lines
1.5 KiB
INI
# Licensed to the Apache Software Foundation (ASF) under one
|
|
# or more contributor license agreements. See the NOTICE file
|
|
# distributed with this work for additional information
|
|
# regarding copyright ownership. The ASF licenses this file
|
|
# to you under the Apache License, Version 2.0 (the
|
|
# "License"); you may not use this file except in compliance
|
|
# with the License. You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing,
|
|
# software distributed under the License is distributed on an
|
|
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
# KIND, either express or implied. See the License for the
|
|
# specific language governing permissions and limitations
|
|
# under the License.
|
|
|
|
[build_sphinx]
|
|
source-dir = doc/
|
|
build-dir = doc/_build
|
|
|
|
[tool:pytest]
|
|
addopts = --ignore=scripts
|
|
filterwarnings =
|
|
# https://github.com/apache/arrow/issues/49227
|
|
ignore:pyarrow.gandiva is deprecated:FutureWarning
|
|
error:The SparseDataFrame:FutureWarning
|
|
# https://github.com/apache/arrow/issues/38239
|
|
ignore:Setting custom ClientSession:DeprecationWarning
|
|
# https://github.com/apache/arrow/issues/49255
|
|
error:Constructing a Categorical with a dtype and values containing non-null entries:DeprecationWarning
|
|
# Get a debug traceback when a test takes a really long time
|
|
faulthandler_timeout = 300
|
|
|
|
[pep8]
|
|
ignore = E211,E225,E226,E227,E402,W503,W504
|
|
max_line_length = 88
|
|
|
|
[flake8]
|
|
max-line-length = 88
|