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

Pandas drop_duplicates crashes Pythonista #715

Open
LeonardKuhn opened this issue Aug 6, 2023 · 0 comments
Open

Pandas drop_duplicates crashes Pythonista #715

LeonardKuhn opened this issue Aug 6, 2023 · 0 comments

Comments

@LeonardKuhn
Copy link

Problem

Using drop_duplicates from pandas crashes the App.
Crashes with example code from pandas documentation.

Sample Code

import pandas as pd

df = pd.DataFrame({
    'brand': ['Yum Yum', 'Yum Yum', 'Indomie', 'Indomie', 'Indomie'],
    'style': ['cup', 'cup', 'cup', 'pack', 'pack'],
    'rating': [4, 4, 3.5, 15, 5]
})
print(df)
df.drop_duplicates()
print(df)

Steps to Reproduce

  1. Created new file
  2. Pasted Code
  3. Running it crashes App
  4. Commenting drop_duplicates() out doesn’t lead to a crash

Expected Behavior

Print df without duplicates (and don’t crash):

brand style rating
0 Yum Yum cup 4.0
2 Indomie cup 3.5
3 Indomie pack 15.0
4 Indomie pack 5.0

System Information

  • Pythonista N/A (N/A), Default interpreter 3.10.4
  • iOS 16.3.1, model iPad8,9, resolution (portrait) 1668.0 x 2388.0 @ 2.0

Newest App-Store Version 3.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant