Advertisement
Guest User

Untitled

a guest
Feb 20th, 2019
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. df.loc[:,'est_arr_date'] = df.loc[:,'estimated_arrival_date'].apply(convert_StrTime)
  2. df.loc[:,'act_arr_date'] = df.loc[:,'actual_arrival_date'].apply(convert_StrTime)
  3. df['delta'] = df['est_arr_date'] - df['act_arr_date']
  4.  
  5. A value is trying to be set on a copy of a slice from a DataFrame.
  6. Try using .loc[row_indexer,col_indexer] = value instead
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement