Skip to content

This repository contains programs in the python programming language.

Notifications You must be signed in to change notification settings

madhurimarawat/Python-for-Datascience

Repository files navigation

Python-for-Datascience

This repository contains basic programs in the python programming language.

Python


About Python Programming

--> Python is a high-level, general-purpose, and very popular programming language.

--> Python programming language (latest Python 3) is being used in web development, Machine Learning applications, along with all cutting-edge technology in Software Industry.

--> Python is available across widely used platforms like Windows, Linux, and macOS.

--> The biggest strength of Python is huge collection of standard library .


Modes of Executions

Python programming language can be executed in the following two modes:

1. Interactive mode

a) Python Shell

Python Shell is a command line tool that starts up the python interpreter to read a Python statement, evaluate the result of that statement and then prints the result on the screen.

b) IDLE

In Windows search Type IDLE. It is an acronym of "Integrated DeveLopment Environment".

c) Anaconda

Installing Anaconda Software and using Jupyter Notebook.

d) Google Colab

Colaboratory, or “Colab” for short, is a product from Google Research which allows anybody to write and execute python code in Jupyter notebook through the browser.

2. Script mode

Python programs are written in editors and saved as the file with the .py extension which can be executed further.

Basic Datatypes

Numbers

✓ Number data type stores numerical values only.

--> It is further classified into three different types:
      a) Int b) Float c) Complex

String

✓ A string is a group of characters and can include alphabets, digits or special characters including spaces.

--> We can use single, double, or triple quotes to define a string.

List

✓ Lists are used when we need a simple iterable collection of data that may go for frequent modifications.

--> For example, if we store the names of students of a class in a list, then it is easy to update the list when some new students join or some leave the course.

Tuple

✓ Tuples are used when we do not need any change in the data.

--> For example, names of months in a year.

Sets

✓ Sets are used when we need uniqueness of elements and to avoid duplicacy it is preferable to use sets.

--> For example, list of items in a museum.

Dictionary

✓ Dictionaries are used if our data is being constantly modified or we need a fast lookup based on a custom key or we need a association between the key : value pair.

--> For Example, A mobile phone book is a good application of dictionary.

Libraries Used

Short Description about all libraries used.

To install python library this command is used-

pip install library_name
  • NumPy (Numerical Python) – Enables with collection of mathematical functions to operate on array and matrices.
  • Pandas (Panel Data/ Python Data Analysis) - This library is mostly used for analyzing, cleaning, exploring, and manipulating data.
  • Matplotlib - It is a data visualization and graphical plotting library.

Thanks for Visiting 😄

Drop a 🌟 if you find this repository useful.

If you have any doubts or suggestions, feel free to reach me.

📫 How to reach me:   Linkedin Badge     Mail Illustration📫