Miss", "Ms" or "Mrs"

本文介绍了如何根据女性的婚姻状况正确使用“Miss”、“Mrs.”和“Ms.”等称呼。如果不清楚对方的婚姻状况,使用“Ms.”是一个既礼貌又不会出错的选择。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Here is the rule for titles. "Miss" and "Mrs." bear reference to that woman's marital status. If she is not married, then she is "Miss Smith". If she is married, they you would refer to her as "Mrs. Smith". If you don"t know the marital status of your new client, the best would be to use "Ms. Smith", which does not refer to her marital status at all. 
D:\Anaconda\python.exe D:\泰坦尼克号生还者预测\泰坦尼克号生还者预测.py D:\泰坦尼克号生还者预测\泰坦尼克号生还者预测.py:19: SyntaxWarning: invalid escape sequence '\.' combined['Title'] = combined['Name'].str.extract(' ([A-Za-z]+)\.', expand=False) D:\泰坦尼克号生还者预测\泰坦尼克号生还者预测.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method. The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy. For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object. combined['Age'].fillna(age_median, inplace=True) D:\泰坦尼克号生还者预测\泰坦尼克号生还者预测.py:15: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method. The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy. For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object. combined['Embarked'].fillna(combined['Embarked'].mode()[0], inplace=True) D:\泰坦尼克号生还者预测\泰坦尼克号生还者预测.py:16: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method. The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy. For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object. combined['Fare'].fillna(combined['Fare'].median(), inplace=True) 这是什么问题
06-13
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值