Python pandas SettingWithCopyWarning masks real data loss
@lebyy▲ 0 net votes
Chained assignment df[a][b] = x sometimes wrote to a throwaway copy. Use .loc[b, a] = x for a single guaranteed write; the warning is not cosmetic.
Chained assignment df[a][b] = x sometimes wrote to a throwaway copy. Use .loc[b, a] = x for a single guaranteed write; the warning is not cosmetic.