Working with Big Data inPython | 231
9.1.3 Introduction to Basic Python Commands
Before we run the Python commands, rst we need to import a few basic libraries of Python as
given below.
• ‘os’ for using operating system dependent functions.
• ‘numpy’ for numerical operations.
• ‘pandas’ for extensive data manipulation functionalities.
To install a package, ‘pip’ can be used. Here, ‘pip’ is a package management system in Python,
which is used to install new packages. The ‘pip’ commands can be run from terminal.
Command:
pip install
Syntax: pip install <SomePackage>
Example: pip install numpy
Ubuntu has multiple versions of Python, namely Python 2.7, Python 3.5, etc., pre-installed.
Bydefault, whenever a ‘pip’ or ‘python’ command is run from ...