Sep-07-2023, 03:22 PM
I was getting a warning that I ignored in my code. It doesn't cause any problems in my example, but it has potential for causing very confusing behaviors.
In my example I did this to make a new dataframe for suppliers:
In my example I did this to make a new dataframe for suppliers:
supplier_table = product_table[["Description"]]This does not create a new dataframe. It creates a slice of the product_table dataframe. What I should have done is make a copy of that slice so that supplier_table and product_table are independent.
supplier_table = product_table[["Description"]].copy()