如果得到如下的結果
在read_csv時用skipfooter=2 跳過最後兩行Traceback (most recent call last):File "census.py", line 22, in <module>print (df_train["income_bracket"].apply(lambda x: ">50K" in x))File "/usr/lib/python2.7/dist-packages/pandas/core/series.py", line 2023, in applymapped = lib.map_infer(values, f, convert=convert_dtype)File "inference.pyx", line 920, in pandas.lib.map_infer (pandas/lib.c:44780)File "census.py", line 22, in <lambda>print (df_train["income_bracket"].apply(lambda x: ">50K" in x))TypeError: argument of type 'float' is not iterable