BUG: Shift on a group column when column name is a tuple-of-tuples results in NumPy VisibleDeprecationWarning #35434
Labels
Bug
Compat
pandas objects compatability with Numpy or Python functions
Error Reporting
Incorrect or improved errors from pandas
Nested Data
Data where the values are collections (lists, sets, dicts, objects, etc.).
[+] I have checked that this issue has not already been reported.
[+] I have confirmed this bug exists on the latest version of pandas.
[+] (optional) I have confirmed this bug exists on the master branch of pandas.
Code Sample, a copy-pastable example
Problem description
Shifting a group that has a column name as tuple-of-tuples gives VisibleDeprecationWarning.
Expected Output
No VisibleDeprecationWarning triggered.
Output of
pd.show_versions()
pandas : 1.1.0rc0+8.g6302f7b98
numpy : 1.19.1
pytz : 2020.1
dateutil : 2.8.1
pip : 20.1.1
setuptools : 49.2.0
Cython : None
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : 4.5.2
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : None
IPython : None
pandas_datareader: None
bs4 : 4.9.1
bottleneck : None
fsspec : None
fastparquet : None
gcsfs : None
matplotlib : 3.3.0rc1+439.g7e9530338
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : None
pytables : None
pyxlsb : None
s3fs : None
scipy : None
sqlalchemy : None
tables : None
tabulate : None
xarray : None
xlrd : None
xlwt : None
numba : 0.50.1
The text was updated successfully, but these errors were encountered: