DA16. 用户常用语言有多少
描述
Python 3 解法, 执行用时: 788ms, 内存消耗: 524288KB, 提交时间: 2022-07-26
import pandas as pd Nowcoder = pd.read_csv('Nowcoder.csv', sep=',') print(int(Nowcoder['Language'].nunique())) print(list(Nowcoder['Language'].unique()))
Python 3 解法, 执行用时: 788ms, 内存消耗: 524288KB, 提交时间: 2022-07-26
import pandas as pd Nowcoder = pd.read_csv('Nowcoder.csv', sep=',') print(len(Nowcoder.Language.unique())) print(list(Nowcoder.Language.unique()))
Python 3 解法, 执行用时: 790ms, 内存消耗: 524288KB, 提交时间: 2022-07-21
import pandas as pd Nowcoder = pd.read_csv('Nowcoder.csv', sep=',') print(len(Nowcoder['Language'].unique())) print(Nowcoder['Language'].unique())
Python 3 解法, 执行用时: 791ms, 内存消耗: 524288KB, 提交时间: 2022-08-03
import pandas as pd Nowcoder = pd.read_csv('Nowcoder.csv', sep=',') print(Nowcoder['Language'].nunique()) print(list(Nowcoder['Language']))
Python 3 解法, 执行用时: 792ms, 内存消耗: 524288KB, 提交时间: 2022-07-26
import pandas as pd Nowcoder = pd.read_csv('Nowcoder.csv', sep=',') print(9) print(Nowcoder['Language'].unique())