Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

converting from series to dataframe with tabulate

from tabulate import tabulate
manufactorer_count = data_1['Manufactorer'].value_counts()#here without '()' near value_counts it shows entire value without suming it's value.
pd.DataFrame(data_1.Manufactorer.value_counts())# Making 'Name' and 'it's 'value_counts' as a panda dataframe..
print(tabulate(pd.DataFrame(data_1.Manufactorer.value_counts()))) # here tabulate for tabulating data as table i think..
Source by colab.research.google.com #
 
PREVIOUS NEXT
Tagged: #converting #series #dataframe #tabulate
ADD COMMENT
Topic
Name
6+3 =