Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: Deprecation Warning 'series.append' use pandas.concat instead #5098

Closed
3 tasks done
benaurelschill opened this issue Oct 6, 2022 · 1 comment · Fixed by #5100
Closed
3 tasks done

BUG: Deprecation Warning 'series.append' use pandas.concat instead #5098

benaurelschill opened this issue Oct 6, 2022 · 1 comment · Fixed by #5100
Assignees
Labels
bug 🦗 Something isn't working P1 Important tasks that we should complete soon

Comments

@benaurelschill
Copy link

benaurelschill commented Oct 6, 2022

Modin version checks

  • I have checked that this issue has not already been reported.

  • I have confirmed this bug exists on the latest released version of Modin.

  • I have confirmed this bug exists on the main branch of Modin. (In order to do this you can follow this guide.)

Reproducible Example

import modin.pandas as pd
data = {'id': ["ajajajajajjajajajajajaja", "jajjajajajajajajajajja"]}
df = pd.DataFrame(data)
df['ID_short'] = df['id'].str.slice(0, 3)

Issue Description

The append method is depreciated since pandas 1.4.0 and should not be used anymore. Use pandas.concat instead.
(https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.append.html)
With pandas this warning doesn't occur.

Expected Behavior

No warnings should appear.

Error Logs

FutureWarning: The series.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.

Installed Versions

INSTALLED VERSIONS

commit : 621bc10
python : 3.9.10.final.0
python-bits : 64
OS : Linux
OS-release : 5.14.0-70.26.1.el9_0.x86_64
Version : #1 SMP PREEMPT Fri Sep 2 16:07:40 EDT 2022
machine : x86_64
processor : x86_64
byteorder : little
LC_ALL : None
LANG : en_US.UTF-8
LOCALE : en_US.UTF-8

Modin dependencies

modin : 0.16.0
ray : 2.0.0
dask : 2022.01.1
distributed : 2022.01.1
hdk : None

pandas dependencies

pandas : 1.5.0
numpy : 1.23.2
pytz : 2022.2.1
dateutil : 2.8.2
setuptools : 53.0.0
pip : 21.2.3
Cython : 0.29.32
pytest : None
hypothesis : None
sphinx : None
blosc : None
feather : None
xlsxwriter : None
lxml.etree : 4.6.5
html5lib : None
pymysql : 1.0.2
psycopg2 : 2.9.3
jinja2 : 3.1.2
IPython : 8.4.0
pandas_datareader: None
bs4 : 4.11.1
bottleneck : None
brotli : None
fastparquet : None
fsspec : 2022.7.1
gcsfs : None
matplotlib : 3.5.3
numba : None
numexpr : None
odfpy : None
openpyxl : None
pandas_gbq : None
pyarrow : 6.0.1
pyreadstat : None
pyxlsb : None
s3fs : None
scipy : 1.9.0
snappy : None
sqlalchemy : 1.4.40
tables : None
tabulate : 0.8.10
xarray : None
xlrd : None
xlwt : None
zstandard : None
tzdata : None

@benaurelschill benaurelschill added bug 🦗 Something isn't working Triage 🩹 Issues that need triage labels Oct 6, 2022
@benaurelschill benaurelschill changed the title BUG: Depreciation Warning BUG: Depreciation Warning 'series.append' use pandas.concat instead Oct 6, 2022
@mvashishtha
Copy link
Collaborator

@benaurelschill thank you for reporting this bug. I can reproduce it with your script at Modin version 621bc10. I'm working on a small fix.

@mvashishtha mvashishtha added P1 Important tasks that we should complete soon and removed Triage 🩹 Issues that need triage labels Oct 6, 2022
@mvashishtha mvashishtha self-assigned this Oct 6, 2022
@mvashishtha mvashishtha changed the title BUG: Depreciation Warning 'series.append' use pandas.concat instead BUG: Deprecation Warning 'series.append' use pandas.concat instead Oct 7, 2022
mvashishtha pushed a commit to mvashishtha/modin that referenced this issue Oct 7, 2022
Signed-off-by: mvashishtha <mahesh@ponder.io>
RehanSD pushed a commit that referenced this issue Oct 7, 2022
Signed-off-by: mvashishtha <mahesh@ponder.io>
RehanSD pushed a commit to RehanSD/modin that referenced this issue Oct 10, 2022
RehanSD pushed a commit that referenced this issue Oct 10, 2022
Signed-off-by: mvashishtha <mahesh@ponder.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🦗 Something isn't working P1 Important tasks that we should complete soon
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants