字符串列表创建字符串
Python查看图片
itertools模块combinations
itertools中reduce
字典.get()方法
解压zip压缩包到指定文件路径
综合案例
演员关系分析...,即设置多个索引
df.reset_index("col1") # 将索引设置为col1字段,并将索引新设置为0,1,2......,col2]) # 返回⼀个按多列进⾏分组的Groupby对象
df.groupby(col1)[col2].agg(mean) # 返回按列col1进⾏分组后,列col2的均值,agg可以接受列表参数...中的⾏添加到df1的尾部
df.concat([df1,df2],axis=1,join='inner') # 将df2中的列添加到df1的尾部,值为空的对应⾏与对应列都不要
df1.join(df2...string = "the author is beishanla"
s = string.split(" ")
s
['the', 'author', 'is', 'beishanla']
字符串列表创建字符串