Skip to content

Commit

Permalink
pandas series demonstrated
Browse files Browse the repository at this point in the history
  • Loading branch information
rakeshlinux committed Jan 19, 2020
1 parent 610a6c8 commit 4862d6b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions pandas/dataFrames/DataFrame_from_dictionary.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Pandas DataFrame from python dictionary
import pandas as pd

student ={'name':['rakesh','suresh','disha','arun','gulati','unnati'],'IP':[56,78,56,78,78,67],'English':[67,78,87,67,78,34],'Pol':[55,78,88,56,90,94]}
df= pd.DataFrame(student)
print(df)
print(df[:3])
print(df.head(3))
print(df.tail(2))

0 comments on commit 4862d6b

Please sign in to comment.