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)
版权声明:本文标题:pythontocsv参数_pd.read_csv()、to_csv()之常用参数 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.freenas.com.cn/jishu/1704871783h465177.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论