python counter转换为列表_python – 将Counter对象转换为Pandas DataFrame
您可以使用from_dict构建并通过param orient =’index’,然后调用reset_index,以便得到2列df:In [40]:from collections import Counterd = Counter({'fb_view_listing': 76, 'fb_homescreen': 63, 'rt_view_listing': 50, 'rt_home_start_...