Introduction

In this article, I’m going to represent “How to Build your own Linear Regression Model in just 7 Steps!”

Image for post
Image for post

Linear Regression: Linear Regression represents some relationship between the dependent variable (y) and the independent variable (x).

It is used to classify the data.

We’re going to implement Linear Regression in Python in just 7 steps:

(You can find the dataset used to build this model here)

Step 1: Import the required libraries

Here, we have imported Pandas, NumPy, math, statsmodels, matplotlib and sklearn libraries to work with.

Step 2: Read the data using Pandas library

We’ll use pd.read_csv function…


Image for post
Image for post

Hello Pythonians! I’m back with another important part of Python which is COMPLETE GUIDE ON FLOW CONTROL.

Till now, we have seen that program run or compiles in a sequential manner. That means, program run or compiles line by line then what if we want to break that manner to acquire our own advantage? That is why we use Flow Control in Python.

Flow Control is basically alternating the sequence of the flow or code. It is done either using Loops or Conditional/decision-making statements.

1. Conditional Statements: Conditional statements are also called Decision-Making Statements. …


Image for post
Image for post

As you all know that Python is the programming language which is very popular in nowadays. To learn Python, you should be known with its basic concepts. Operators in Python is an essential part to work further with the language. Let’s get introduced to the OPERATORS in Python!

What are OPERATORS?

Operators are the constructs which are used to manipulate data. They are used to elaborate the actions that are need to be done. Basically, they are used to perform certain operations on variables and values.

The value that the operator operates is called the OPERAND.

Eg. 2+3 in python…


Image for post
Image for post

In Python, there are total six data types. They are:

  1. NUMERIC
  2. LISTS
  3. TUPLES
  4. DICTIONARY
  5. SET
  6. STRINGS

NUMERIC DATA TYPE:

Numeric data types are used to store numeric values. Numeric data type is IMMUTABLE. That means; they can’t be modified or changed further.

Numeric data type includes the conversion which is given as below:

  • Type int(x) is used to convert x to a simple integer.
  • Type long(x) is used to convert x to a long integer.
  • Type float(x) is used to convert x to a floating-point number.

Moreover, Numeric data type conversions. They are:


Image for post
Image for post

Hello people! I’m back bringing up “BASICS OF PYTHON (PART-1)” for curious programmers. Here, we will see a beginner guide to Python which will help you in various fields to grow more.

Lets’s start by writing our first program in python which just prints “We The Pythonians” so as to make you clear about basic python syntax.

Click here to see firstprogram.py

We are going to start off with “PYTHON BASICS” which includes:

  1. Data Types
  2. Operators
  3. Flow Control
  4. Functions
  5. File Handling

We’ll cover basic DATA TYPES which includes NUMERIC, DICTIONARIES, SET, LIST, TUPLE, STRING. Further; we’ll be working with OPERATORS


Image for post
Image for post

Hello there, fellow programmers! I hope you all are doing well these days. Want to learn a new programming language these days? Great! Learning a new programming language can be a challenge for the first time but constant practice makes you friendly with that language and you can expertise it by just sitting at your home.

I guess that you all might have heard about PYTHON. Python is a programming language which is used in almost every field of today’s era. Today, I am going to provide you a guide for absolute Python beginners who want to expertise this language…


Image for post
Image for post

Hello there, fellow programmers! I hope you all are doing well these days. Want to learn a new programming language these days? Great! Learning a new programming language can be a challenge for the first time but constant practice makes you friendly with that language and you can expertise it by just sitting at your home.

I guess that you all might have heard about PYTHON. Python is a programming language which is used in almost every field of today’s era. Today, I am going to provide you a guide for absolute Python beginners who want to expertise this language…

Kanalsoni

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store