Please enable JavaScript.
Coggle requires JavaScript to display documents.
Pandas - Coggle Diagram
Pandas
create data from from sratch
create df from dictionary of lists
{'product name':['pro a', 'pro b' ','pro c'], ' product price': [1000,2000,3000]}
create df from dictionary of lists + index
create df from a list of dicts
[{'product name' : 'pro a', 'product price':1000}]
create df from dict of pandas series
create df from list of lists
create df in professional ways
data = [['pro a' , 1000] , ['pro b' , '2000']
columns = ['product name', 'product price'],
index = ['a,'b','c']
index
position based
label-based
explicit and implicit
data frames
series
1 dimensional data structure
dataframe
2 dimensional data structure
enhanced python dictionary
provide object that contains the values of an entire column to dict keys
objects
attributes
metadata about an object
methods
functions that can be associated with an object
functions
independent entity
methods
call, invoke have access to object's data
sum(),min(),max(),indxmax(),idx(min)
head(),tail()
install the latest version of pandas
pip install pandas --upgrade