0% found this document useful (0 votes)
46 views

Shell Python and Data Analysis Programs

Uploaded by

Madhav Arora
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
46 views

Shell Python and Data Analysis Programs

Uploaded by

Madhav Arora
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

IPython Shell

This shell apparently resembles a Python session run from a command line, but actually,
it provides many other features that make this shell much more powerful and versatile
than the classic one. To launch this shell, just type ipython on the command line.
> ipython
Python 3.6.3 (default, Oct 15 2017, 3:27:45) [MSC v.1900 64bit (AMD64)]
Type "copyright", "credits", or "license" for more information.
IPython 6.1.0 -- An enhanced Interactive Python. Type '?' for help
In [1]:
As you can see, a particular prompt appears with the value In [1]. This means that it
is the first line of input. Indeed, IPython offers a system of numbered prompts (indexed)
with input and output caching.
In [1]: print("Hello World!")
Hello World!
In [2]: 3/2
Out[2]: 1.5
In [3]: 5.0/2
Out[3]: 2.5
In [4]:
The same thing applies to values in output that are indicated with the values Out[1],
Out [2], and so on. IPython saves all inputs that you enter by storing them as variables.
In fact, all the inputs entered were included as fields in a list called In.
In [4]: In
Out[4]: [", 'print "Hello World!"', '3/2', '5.0/2', 'In']
The indices of the list elements are the values that appear in each prompt. Thus, to
access a single line of input, you can simply specify that value.
In [5]: In[3]
Out[5]: '5.0/2'

Python and Data Analysis


The main argument of this book is to develop all the concepts of data analysis by treating
them in terms of Python. The Python programming language is widely used in scientific
circles because of its large number of libraries that provide a complete set of tools for
analysis and data manipulation.
Compared to other programming languages generally used for data analysis, such
as R and MATLAB, Python not only provides a platform for processing data, but also has
features that make it unique compared to other languages and specialized applications.
The development of an ever-increasing number of support libraries, the implementation
of algorithms of more innovative methodologies, and the ability to interface with other
programming languages (C and Fortran) all make Python unique among its kind.
Furthermore, Python is not only specialized for data analysis, but also has many
other applications, such as generic programming, scripting, interfacing to databases,
and more recently web development, thanks to web frameworks like Django. So it is
possible to develop data analysis projects that are compatible with the web server with
the possibility to integrate it on the Web.
So, for those who want to perform data analysis, Python, with all its packages, is
considered the best choice for the foreseeable future.
Furthermore, Python is not only specialized for data analysis, but also has many
other applications, such as generic programming, scripting, interfacing to databases,
and more recently web development, thanks to web frameworks like Django. So it is
possible to develop data analysis projects that are compatible with the web server with
the possibility to integrate it on the Web.
So, for those who want to perform data analysis, Python, with all its packages, is
considered the best choice for the foreseeable future.

You might also like