Posts

DataFrame Concept, Usage

Dataframe is a 2D-dimensional data structure, size-mutable, potentially heterogeneous tabular data structure with labeled axes (rows and columns).  a. Two Dimensional - data is stored in the form of rows and columns. Something like below which consists of 3 rows and 2 columns. Output:   Name Age 1 Sunny 32 2 Rocky 22 3 Tim 41 Python Code: import pandas as pd df = pd.DataFrame({'Name':['sunny','rocky','tim'],'Age':[32,22,41]},index=[1,2,3]) print(df) Code Explanation: First Line : pandas is a python library which has several built in functions to use for data analysis. DataFrame, Series, Panel are few data structures available inside pandas. For more info refer  https://pandas.pydata.org/  . Second Line: DataFrame is a class in pandas used to store 2D(two dimensional) data. Syntax for using DataFrame goes something like below. Third Line:  Prints the output in console to see. class pandas.DataFrame(data,index,columns,...

Different types of Python Editors

This blog is for students who are in either class 11 or 12(CBSE) looking to clear concepts in  Computer   and  Informatics Practices(IP)   subjects also for boys and girls who are interested in python, machine learning(ML) and Data Science. Two Types of Python Editors or IDEs a. Offline This type of editors require one to download the software and install it on one's computer.  Their are many free and paid editors but the most popular ones are -  Anaconda and VS code .  Download Anaconda from  https://www.anaconda.com/  and start using it instantly. For VS code visit  https://code.visualstudio.com/ . VS code can be not only for python but for running java, php, C#, C++, html etc.  Only disadvantage is you have to download and install again every time their is a new version of the software or any update on the python package itself.  b. Online or Cloud based This type of editors require an active internet con...