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

Potential problem with Pandas #615

Closed
kvn95ss opened this issue Nov 14, 2023 · 1 comment
Closed

Potential problem with Pandas #615

kvn95ss opened this issue Nov 14, 2023 · 1 comment
Labels

Comments

@kvn95ss
Copy link

kvn95ss commented Nov 14, 2023

Hello,

When using the latest version of UMI_tools from conda, I got the below warning message -

/home/user/anaconda3/envs/umitools/lib/python3.10/site-packages/umi_tools/dedup.py:171: FutureWarning: The provided callable <function median at 0x7fbdd03d67a0> is currently using SeriesGroupBy.median. In a future version of pandas, the provided callable will be used directly. To keep current behavior pass the string "median" instead.                                                                                                                                                                          agg_df = grouped.agg(agg_dict)
/home/user/anaconda3/envs/umitools/lib/python3.10/site-packages/umi_tools/dedup.py:171: FutureWarning: The provided callable <function sum at 0x7fbe106639a0> is currently using SeriesGroupBy.sum. In a future version of pandas, the provided callable will be used directly. To keep current behavior pass the string "sum" instead.           agg_df = grouped.agg(agg_dict)
/home/user/anaconda3/envs/umitools/lib/python3.10/site-packages/umi_tools/dedup.py:171: FutureWarning: The provided callable <function median at 0x7fbdd03d67a0> is currently using SeriesGroupBy.median. In a future version of pandas, the provided callable will be used directly. To keep current behavior pass the string "median" instead.                                                                                                                                                                          agg_df = grouped.agg(agg_dict)
/home/user/anaconda3/envs/umitools/lib/python3.10/site-packages/umi_tools/dedup.py:171: FutureWarning: The provided callable <function sum at 0x7fbe106639a0> is currently using SeriesGroupBy.sum. In a future version of pandas, the provided callable will be used directly. To keep current behavior pass the string "sum" instead.           agg_df = grouped.agg(agg_dict)
/home/user/anaconda3/envs/umitools/lib/python3.10/site-packages/umi_tools/dedup.py:448: FutureWarning: Setting an item of incompatible dtype is deprecated and will raise in a future error of pandas. Value 'Single_UMI' has dtype incompatible with int64, please explicitly cast to a compatible dtype first.                                  edit_distance_df['edit_distance'][0] = "Single_UMI"

While not exactly an error for now, it might lead to incompatibility with future versions of Pandas, so do have a look at it!

Thanks,
Karthik

@IanSudbery
Copy link
Member

What a pain. Thanks for letting us know!

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

No branches or pull requests

3 participants