Create a DataFrame birds from this dictionary data which has the index labels

前端 未结 4 1763
旧巷少年郎
旧巷少年郎 2021-01-24 08:13

Consider the following Python dictionary data and Python list labels:**

data = {\'birds\': [\'Cranes\', \'Cranes\', \'plovers\', \'spoonbills\', \'spoonbills\',          


        
4条回答
  •  盖世英雄少女心
    2021-01-24 08:43

    Even I encountered the same exact issue few days back and we have a very beautiful library to handle dataframes and is better than pandas.

    Search for turicreate in python, it is very very similar to the pandas but has a lot more to offer than pandas.

    You can define the Sframes in Turienter image description here, somewhat similar to the pandas dataframe. After that you just have to run:

    dataframe_name.show()

    .show() visualizes any data structure in Turi Create.

    You can visit the mentioned notebook for a better understanding: https://colab.research.google.com/drive/1DIFmRjGYx0UOiZtvMi4lOZmaBMnu_VlD

提交回复
热议问题