DA35. 不同等级用户语言使用情况
描述
Python 3 解法, 执行用时: 792ms, 内存消耗: 524288KB, 提交时间: 2022-07-25
import pandas as pd Nowcoder = pd.read_csv('Nowcoder.csv', sep=',') data = Nowcoder.groupby(['Level','Language'])['Language'].count() print(data)
Python 3 解法, 执行用时: 793ms, 内存消耗: 524288KB, 提交时间: 2022-07-20
import pandas as pd data = pd.read_csv('Nowcoder.csv', sep = ',') print(data.groupby(['Level', 'Language'])['Nowcoder_ID'].count())
Python 3 解法, 执行用时: 794ms, 内存消耗: 524288KB, 提交时间: 2022-07-25
import pandas as pd Nowcoder = pd.read_csv('Nowcoder.csv', sep=',') print(Nowcoder.groupby(['Level','Language'])['Nowcoder_ID'].count())
Python 3 解法, 执行用时: 794ms, 内存消耗: 524288KB, 提交时间: 2022-07-25
import pandas as pd Nowcoder = pd.read_csv('Nowcoder.csv', sep=',') a= Nowcoder.groupby(['Level','Language'])['Nowcoder_ID'].count() print(a)
Python 3 解法, 执行用时: 797ms, 内存消耗: 524288KB, 提交时间: 2022-07-20
import pandas as pd Nowcoder = pd.read_csv('Nowcoder.csv', sep=',') print(Nowcoder.groupby(['Level','Language'])['Nowcoder_ID'].size())