Hi, i need some help with my code:
dete_resignations[‘cease_date’] = dete_resignations[‘cease_date’].str.split(’/’).str[-1].copy()
Even when i added the copy method i get this error:
/dataquest/system/env/python3/lib/python3.4/site-packages/ipykernel/main.py:1: SettingWithCopyWarning:
A value is trying to be set on a copy of a slice from a DataFrame.
Try using .loc[row_indexer,col_indexer] = value instead
See the caveats in the documentation: http://pandas.pydata.org/pandas-docs/stable/indexing.html#indexing-view-versus-copy
if name == ‘main’:
So , i am stock in there. Pls help me !
Thanks