AlenkaF opened a new issue, #49255:
URL: https://github.com/apache/arrow/issues/49255
### Describe the enhancement requested
I have stumbled upon this deprecation warning in test_pandas.py:
```python
pyarrow/tests/test_pandas.py::TestConvertMisc::test_category
/Users/alenkafrim/Repos/arrow/python/pyarrow/tests/test_pandas.py:3078:
Pandas4Warning: Constructing a Categorical with a dtype and values containing
non-null entries not in that dtype's categories is deprecated and will raise in
a future version.
'cat_strings_with_na': pd.Categorical(v1 * repeats,
pyarrow/tests/test_pandas.py::TestConvertMisc::test_category_implicit_from_pandas
/Users/alenkafrim/Repos/arrow/python/pyarrow/tests/test_pandas.py:3104:
Pandas4Warning: Constructing a Categorical with a dtype and values containing
non-null entries not in that dtype's categories is deprecated and will raise in
a future version.
pd.Categorical(['a', 'b', 'c'], categories=['a', 'b']),
pyarrow/tests/test_pandas.py::TestConvertMisc::test_category_implicit_from_pandas
/Users/alenkafrim/Repos/arrow/python/pyarrow/tests/test_pandas.py:3105:
Pandas4Warning: Constructing a Categorical with a dtype and values containing
non-null entries not in that dtype's categories is deprecated and will raise in
a future version.
pd.Categorical(['a', 'b', 'c'], categories=['a', 'b'],
```
There might be more we should address.
### Component(s)
Python
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]