Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

Summarizing Data and description data in pandas

import pandas as pd
import numpy as np

#Create a Dictionary of series
d = {'Name':pd.Series(['Tom','James','Ricky','Vin','Steve','Smith','Jack',
   'Lee','David','Gasper','Betina','Andres']),
   'Age':pd.Series([25,26,25,23,30,29,23,34,40,30,51,46]),
   'Rating':pd.Series([4.23,3.24,3.98,2.56,3.20,4.6,3.8,3.78,2.98,4.80,4.10,3.65])
}

#Create a DataFrame
df = pd.DataFrame(d)
print df.describe()
Comment

PREVIOUS NEXT
Code Example
Python :: how to print a text in python 
Python :: first n lis tpython 
Python :: =adaqtar 
Python :: get false positives from confusoin matrix 
Python :: write in file python 
Python :: how to play mp3 file form pygame module 
Python :: django app directory 
Python :: python keyboard monitoring 
Python :: File "main.py", line 11 if message.author == client.user: ^ IndentationError: expected an indented block 
Python :: pandas plot column titles vertical 
Python :: comprehensions 
Python :: numpy split to chunks of equal size 
Python :: take space away from strings ion pyhton 
Python :: Compute Jordan normal form of matrix in Python / NumPy 
Python :: python long 
Python :: relation api profile does not exist django 
Python :: how to create dll from java code 
Python :: max sum slice python 1 - autopilot 
Python :: matplotlib show two distinct plots 
Python :: aes in django 
Python :: modbusfc03 python 
Python :: Higher-order functions and operations on callable objects in python 
Python :: .close() python 
Python :: np.all() 
Python :: how to randomise a string in python 
Python :: inline keyboard telegram bot python 
Python :: change value in dataframe 
Python :: pygame buttons 
Python :: pytesseract.image_to 
Python :: python 3d software 
ADD CONTENT
Topic
Content
Source link
Name
1+2 =