题解 | #牛客的资深员工#
牛客的资深员工
https://www.nowcoder.com/practice/02287d71565f4abaa62d7fc90b250e75
import pandas as pd df_Nowcoder= pd.read_csv('Nowcoder.csv',sep=',') get_emp = (df_Nowcoder['language'] == 'C')&(pd.to_numeric(df_Nowcoder['working_years'],error='coerce') >= 8) # 实际应该把dtype=object加上,在需要的时候自己转化类型比较安全 print(df_Nowcoder[get_emp])