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

FutureWarning: Setting an item of incompatible dtype #16

Open
amhanson9 opened this issue Aug 29, 2024 · 0 comments
Open

FutureWarning: Setting an item of incompatible dtype #16

amhanson9 opened this issue Aug 29, 2024 · 0 comments

Comments

@amhanson9
Copy link
Contributor

Warning from running the script August 2024

174: FutureWarning: Setting an item of incompatible dtype is deprecated and will raise an error in a future version of pandas. Value 'Missing' has dtype incompatible with float64, please explicitly cast to a compatible dtype first.
df.loc[pd.isna(df[column_name]), 'Audit_Required'] = 'Missing'
66: FutureWarning: Setting an item of incompatible dtype is deprecated and will raise an error in a future version of pandas. Value 'Expired' has dtype incompatible with float64, please explicitly cast to a compatible dtype first.
df_date.loc[df_date['Review_Date'] < today, 'Audit_Dates'] = 'Expired'
71: FutureWarning: Setting an item of incompatible dtype is deprecated and will raise an error in a future version of pandas. Value 'Review' has dtype incompatible with float64, please explicitly cast to a compatible dtype first.
df_nondate.loc[df_nondate['Review_Date'].str.lower() != 'permanent', 'Audit_Dates'] = 'Review'
144: FutureWarning: Setting an item of incompatible dtype is deprecated and will raise an error in a future version of pandas. Value 'Not in share' has dtype incompatible with float64, please explicitly cast to a compatible dtype first.
df.loc[df['_merge'] == 'left_only', 'Audit_Inventory'] = 'Not in share'

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