tips.smoker = tips.smoker.astype('category') # Convert the smoker column to type 'category'
print(tips.info())
tips['total_bill'] = pd.to_numeric(tips['total_bill'], errors='coerce') # Convert 'total_bill' to a numeric dtype
tips['tip'] = pd.to_numeric(tips['tip'], errors='coerce') # Convert 'tip' to a numeric dtype
print(tips.info())