Posts

Showing posts with the label Python3

How to apply Operations on Arrays using NumPy Library

Image
NumPy Library provides lot of useful function that you can apply on n-dimensional arrays(ndarray) for scientific or mathematical computations.  In the subsequent sections we will discuss following functions provided by NumPy Library after importing it in our program. shape( )                        If you have an ndarray and you want to determine its dimensions then you may use  shape( )  for this purpose as shown in example below; From the above output result, i.e.  ‘Out[3]: (3,3)’   after using shape( ) function, you find that you have created an array of dimension   3x3 . Arithmetic Operations  (+,  -, *, /) You can use arithmetic operations i.e. addition, subtraction, multiplication and division to ndarray object. Using arithmetic operations when you use scalar value as second operand with first o...

How to declare an Array Object (ndarray) using NumPy Library

Image
NumPy which stands for “ Num erical  Py thon”  is a fundamental package of python used for data analysis and scientific computing projects.  NumPy  Library provides a feature of n-dimensional array object by which we can contain our large data in flexible way, which is very fast to make scientific or mathematical operations on whole data set that it holds. There are many ways by which you can create or declare n-dimensional arrays.  In this article, we will discuss about some useful functions for this purpose and learn about how to declare an n-dimensional array using following basic functions discussed below:           array( )           reshape( )           zeros( )           ones( )           arange( )           eyes( )           identity( )         ...

How to get started with Python on Windows

Image
Python programming language, created by  Guido van Rossum  is really a wonderful and powerful language and it is nowadays widely used high-language programming language for general purpose programming. Python does not come up pre-installed with any version of Windows OS as compared to other Operating Systems i.e. Linux and Unix in which python is already installed in it. Using this post of tutorial, you can easily install python on your Windows 10 Operating systems by performing following steps mentioned below: Step 1: Download a recent version of Python Installer First of all you have to download a installer file of python by browsing to webpage  www.python.org  as shown in following snapshot. After browsing to said link, when you hover over  Download  on navigation menu on page as highlighted below, you will be provided two options of two versions of python installers i.e.  3.x.x  and 2.x.x.  In this tutorial you will opt to ...