image credits to eduCBA

The NumPy linear algebra functions rely on BLAS and LAPACK to provide efficient low-level implementations of standard linear algebra algorithms.

The Linear Algebra module of NumPy offers various methods to apply linear algebra on any NumPy array.
One can find:

The SciPy library also contains a linalg submodule and there is overlap in the functionality provided by the SciPy and NumPy submodules.

Commonly used linalg functions:

diagReturn the diagonal (or off-diagonal) elements of a…


Introduction to NumPy

what is NumPy?

NumPy stands for Numerical Python. It is a standard library containing multidimensional array objects and various tools for working with arrays. The core of NumPy is code optimized in C language.

Why NumPy arrays?

.Here are some features that make NumPy a preference:

.Numpy offers comprehensive computing tools like mathematical functions, random no generators, etc

. It's an Open source

.Easy to use — high-level syntax, makes it easy for anyone to understand.

.Interoperable-supports a wide range of hardware and computing platforms.

NumPy arra

ys are better than Python lists in the following ways…


The 21st centuary seems to be the house of rising data , with 1.7MB of data being created every second by an individual,the need for data handling and manipulation is dire. Python is one among the many languages that can be used as a tool to clean and maneuver data , Lets get to know how ?

So why choose python and not another language ?

Here’s why , Python is :

Flexible- you can try something new and creative with python always.

Easy to learn -Python offers programmers the advantage of using fewer lines of code to accomplish tasks…


Delving into classes and objects in python

what are classes and why do we need them?

Classes provide a means of grouping data and functionality together in a program. but it’s not strictly necessary to have classes in python, as it supports functions, but since python was designed keeping OOP(object-oriented programming) in mind, we encounter classes. A class is like a blueprint for an object.

Class definition syntax :

class ClassName:
# Statement-1
.
.
.
# Statement-N

we use the word class followed by a user-defined name for the class while defining it and a semicolon.

#defining a class…

Functions in Python

When a programmer has to perform a task that is often repeated, they club the set of instructions together in a function, then call the function whenever it's needed for a variety of outputs according to the situation. Functions can be built-in or user-defined.

some of the built-in functions in python are: iter(), len(),max(),compile() etc

syntax of a function in python

def function_name(parameters):
"""docstring"""
statement(s)

A function in python is declared using the def keyword, followed by a function name of your choice, arguments, and a semicolon. The set of statements to be executed in the function…


what are slicing and indexing in python ?

Slicing

By using the Slicing feature in Python you can access parts of a sequence. We use slicing when we require a part of string and not the complete string.Python supports slice notation for any sequential data type like lists, strings, tuples, bytes, bytearrays, and ranges.its a tool that builds new lists out of an existing list.

syntax for slicing :

string[start : end : step]

start: you can specify the starting index here from where you want to initiate the slicing.

end :you can specify the ending index +1 here …


Info you need to get started with python

Python is one of the most accessible programming language available because of its simplified syntax. python codes can be easily written and executed much faster than other programming languages. There are two major Python versions: Python 2 and Python 3.

Understanding the basics : Keywords , identifiers, statements , comments and data types

Keywords: Python has a set of keywords that are reserved and cannot be used as variable names, function names, or any other identifiers. These are special words and give a specific meaning to the programmer.

some of the keywords…

Aditi Pateriya

A curious learner , an engineer by profession , exploring the world through writings

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