Python pandas: can I add constraints like I would in a database?
问题 Is there any way to add constraints or foreign keys the way I would in a database? E.g. making sure a field is unique, a field is always > 0, that customer_id in the orders table always has a match in customer_id in the customer table, etc? 来源: https://stackoverflow.com/questions/32353732/python-pandas-can-i-add-constraints-like-i-would-in-a-database