Techworld

Using [] Brackets in Python

We Will Work on this Example in Google Colab, As we have seen Accessing Python through Google Colab in my previous Posts. (Accessing Python Through Google Colab: – Sri Tech Studio) I have assigned The Range of values from 1 to 5 in Variable x, printed the Variable x and Printed the List of Numbers …

Using [] Brackets in Python Read More »

Creating Lists in python

Assigned 3,45,50,100 Values in Variable Named data and Print the data and Check the datatype of the data variable, The data type is shown as List. As We have also Printed Different Datatype Values in Variable data1; List is a heterogeneous data type so it will allow us to print different Data type Values . …

Creating Lists in python Read More »

Lists in Python:

Lists are just like dynamic sized arrays, declared in other languages (vector in C++ and Array in C & Java). Lists need not be homogeneous always which makes it a most powerful tool in Python. A single list may contain Datatypes like Integers, Strings, as well as Objects. Lists are mutable, and hence, they can be altered …

Lists in Python: Read More »

IF Statement in Python:

There comes a situation in real life when we need to make some decisions and based on these decisions, we decide what should we do next. Similar situations arise in programming also where we need to make some decisions and based on these decisions, we will execute the next block of code. Decision making statements …

IF Statement in Python: Read More »

For loop in python

For loops are used for sequential traversal. For example: traversing a list or string or array etc. The for loop in Python is used to iterate over a sequence (list, tuple, string) or other iterable objects. Iterating over a sequence is called traversal. Let’s quickly work on few examples: Here the variable i is iterated …

For loop in python Read More »

Working with While Loop in Python

In Python, While Loops is used to execute a block of statements repeatedly until a given condition is satisfied. And when the condition becomes false, the line immediately after the loop in the program is executed. While loop falls under the category of indefinite iteration. Indefinite iteration means that the number of times the loop is executed isn’t …

Working with While Loop in Python Read More »

Markdown cell in Jupyter Notebook

Jupyter Notebook(formerly IPython Notebook) is a web-based interactive computational environment for creating Jupyter notebook documents. Markdown is a light weight and popular Markup language which is a writing standard for data scientists and analysts. It is often converted into the corresponding HTML by which the Markdown processor allows it to be easily shared between different …

Markdown cell in Jupyter Notebook Read More »

Data Types in python:

Data types are the classification or categorization of data items. It represents the kind of value that tells what operations can be performed on a particular data. Since everything is an object in Python programming, data types are classes and variables are instance (object) of these classes. The variable in Python is used to store …

Data Types in python: Read More »

Variables in Python:

Variables are nothing but reserved memory locations to store values. This means that when you create a variable you reserve some space in memory. Based on the data type of a variable, the interpreter allocates memory and decides what can be stored in the reserved memory. Therefore, by assigning different data types to variables, you …

Variables in Python: Read More »

Get Started with Python Syntax

Python Indentation: The indentation in Python is very important. Indentation refers to the spaces at the beginning of a code line. Where in other programming languages the indentation in code is for readability only, the indentation in Python is very important. Python uses indentation to indicate a block of code. Let’s quickly look into few examples how Python indentation works. Example 1: From the …

Get Started with Python Syntax Read More »

Python Keyboard Shortcuts

If You haven’t Installed or downloaded Anaconda yet, please refer the Below URL to Install Anaconda. After successful Installation , you will Find the Anaconda Command Prompt from the start menu. Open the Anaconda Command Prompt and type jupyter Notebook and Press Enter. Python Workspace will be Opened in the Browser, Minimize this Command Prompt …

Python Keyboard Shortcuts Read More »

Installation of Python:

Setup & Installation: Anaconda is a distribution of Python, it includes not only python, but many libraries that we are going to use in our posts, as well as its own Virtual environment system. It’s an all-in-one install that is extremely popular in data science and Machine learning. Installation Process: Go to this URL : …

Installation of Python: Read More »

R Vs Python

This is the Most Trending debut of Aspiring data scientists Here we will try to understand the differences between both programming Language In the battle of data science tools, python and R both have their pros and cons. Selecting one over the other will depend on the use-cases, the cost of learning, and other common …

R Vs Python Read More »

Real Time scenario

The World Bank requires scatterplot depicting Life Expectancy (y-axis) and Fertility Rate (x-axis) statistics by Country. The scatterplot needs to also be categorized by Countries’ Regions. we have been supplied with data for 2 years: 1960 and 2013 and we are required to produce a visualization for each of these years. Some data has been …

Real Time scenario Read More »

Working with Basic Operations and Filtering Dataframes

We will be using the same  dataset used in my previous post (https://sritechstudio.com/demographic-analysis-using-dataframes/) Now let us work on some basic and essential operations in Dataframe Subsetting : Subsetting in R is a useful indexing feature for accessing object elements. It can be used to select and filter variables and observations. You can use brackets to …

Working with Basic Operations and Filtering Dataframes Read More »