Keen Learner and Exp... • 1d
Day 11 of learning Data science as a beginner Topic: creating data structure In my previous post I discussed about the difference between panda's series and data frames we typically use data frames more often as compared to series There are a lot of ways in which you can create a pandas data frame first by using a list of python lists second by creating a python dictionary and using pd.DataFrame keyword to create a data frame you can also use numpy arrays to create data frames as well As pandas is used specifically for analysis of data it can create a data frame by reading a .csv file, a .json file, a .xlsx file and even from a url linking a data frame or similar file You can also use other functions like .head() to get the top part of data frame and .tail() to get the lower part of data frame you can also use .info and .describe function to get more information about this data frame Also here's my code and its result



Download the medial app to read full posts, comements and news.