-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy path1.IntroductionOfPandas.py
98 lines (75 loc) · 4.39 KB
/
1.IntroductionOfPandas.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
##--------------------------------
##Created By:Ravishankar Chavare
##version:python 3.7
##Date:24/12/18
##File_des:Introduction of Pandas
##--------------------------------
##Pandas:-
##**********************************************************************************************************************************
# ----About----
##**********************************************************************************************************************************
'''
-pandas is a Python package providing fast, flexible, and expressive data structures designed to make working with “relational” or
“labeled” data both easy and intuitive.
It aims to be the fundamental high-level building block for doing practical, real world data analysis in Python
-pandas is a software library written for the Python programming language for data manipulation and analysis.
In particular, it offers data structures and operations for manipulating numerical tables and time series.
-Tools for reading and writing data between in-memory data structures and different formats: CSV and text files,
Microsoft Excel, SQL databases, and the fast HDF5 format;
'''
##**********************************************************************************************************************************
# ----Why Pandas---
##**********************************************************************************************************************************
'''
-Pandas is arguably the most important Python package for data science
-pandas is an opensource
-Its can work with data from different type of data sources like,csv,excel,dat,text and much more
-It gives productivity and performance according to others
-It allows fast analasys and data cleaning preparation
-Some Builtin Visualization Features
-High performance merging and joining of data sets;
-optimized for performance
'''
##**********************************************************************************************************************************
# ---Benifits of using pandas---
##**********************************************************************************************************************************
'''
-Easy handling of missing data (represented as NaN) in floating point as well as non-floating point data
-Size mutability: columns can be inserted and deleted from DataFrame and higher dimensional objects
-Automatic and explicit data alignment: objects can be explicitly aligned to a set of labels, or
the user can simply ignore the labels and let Series, DataFrame, etc. automatically align the data for you in computations
-Powerful, flexible group by functionality to perform split-apply-combine operations on data sets, for both aggregating and transforming data
-Make it easy to convert ragged, differently-indexed data in other Python and NumPy data structures into DataFrame objects
'''
##******************************************************************************************************************************##
# --Operation on pandas--
##******************************************************************************************************************************##
'''
1.Data Slicing
2.Changing the index
3.Data Conversion
4.Concatnation
5.Joining And Merging
6.Changing The Columns Headers
7.And More
'''
##**********************************************************************************************************************************
# ----Insallation and Setup----
##**********************************************************************************************************************************
'''
You can simply install pandas using command line on terminal
in windows just open your command prompt and type:
pip install pandas
press enter key and wait unitll pandas to be install on your machine
For Upgrading pandas using pip
python3 -m pip install --upgrade pandas
'''
##**********************************************************************************************************************************
# ---Import Use in Pandas---
##**********************************************************************************************************************************
'''
import pandas as pd
import numpy as np
'''
import pandas as pd
import numpy as np