admin 管理员组

文章数量: 887021


2024年1月10日发(作者:export作用)

PassengerIdSurvivedPclassNameSexAgeSibSpParchTicketFareCabinEmbarked0103Braund, Mr. Owen Harrismale22.010A/5 211717.2500NaNS1211Cumings, Mrs. John Bradley (Florence female38.010

PC 1759971.2833C85C2313Heikkinen, Miss. Lainafemale26.000STON/O2. 31012827.9250NaNS3411Futrelle, Mrs. Jacques Heath (Lily May Peel)female35..1000C123S4503

CabinEmbarked1103Braund, Mr. Owen Harrismale2210A/5 211717.25NaNS2211Cumings, Mrs. John Bradley (Florence female3810PC 1759971.2833C85C3313Heikkinen, Miss. Lainafemale

2600STON/O2. 31012827.925NaNS4411Futrelle, Mrs. Jacques Heath (Lily May Peel)female351011380353.1C123Sdata2 = _csv(r"G:",index_col=["Survived","Sex"])()PassengerIdPclassNameAgeSibSpParchTicketFareCabinEmbarkedSurvivedSex

0male13Braund, Mr. Owen Harris22.010A/5 211717.2500NaNS1female21Cumings, Mrs. John Bradley (Florence 38.010PC 1759971.2833C85Cfemale33Heikkinen, Miss. Laina26.000STON/O2. 31012827.9250NaN

8910110313Heikkinen, Miss. Lainafemale26.000STON/O2. 31012827.9250NaNS1411Futrelle, Mrs. Jacques Heath (Lily May Peel)female35..1000C123S2503

Allen, Mr. William Henrymale35..0500NaNS3603Moran, Mr. JamesmaleNaN003308778.4583NaNQ4701McCarthy, Mr. Timothy Jmale54..8625E46

36.0NaNpath1 = father_path + r''_csv(path1)path2 = father_path + r''_csv(path2,header=None)path3 = father_path + r''_csv(path3, columns=["a","c"],index=False)path4 = father_path + r''_csv(path4, na_rep=0)


本文标签: 作者 作用