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

Fix warning on deprecated pandas method DataFrame.append() #58

Open
ckunki opened this issue Nov 4, 2024 · 0 comments
Open

Fix warning on deprecated pandas method DataFrame.append() #58

ckunki opened this issue Nov 4, 2024 · 0 comments
Labels
bug Unwanted / harmful behavior

Comments

@ckunki
Copy link
Contributor

ckunki commented Nov 4, 2024

File mock_context.py contains

def get_dataframe(self, num_rows='all', start_col=0):
    # ...
    df = df.append(df_current)

... which raises the warning "The frame.append method is deprecated and will be removed from pandas in a future version. Use pandas.concat instead.", see https://stackoverflow.com/questions/70837397/good-alternative-to-pandas-append-method-now-that-it-is-being-deprecated

The current ticket therefore requests to replace this code by

def get_dataframe(self, num_rows='all', start_col=0):
    # ...
    df = pd.concat([df, df_current])
@ckunki ckunki added the bug Unwanted / harmful behavior label Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Unwanted / harmful behavior
Projects
None yet
Development

No branches or pull requests

1 participant