Data Science Complete Example with Library Pandas and Matplotlib :-
Learning of data Science is very easy for developer and IT backgroud people beacuse they knows about programming mathodolgy and syntax in various other language. As java have its own set of rules for execute the program in the same way python have its own.
In this post i will explain about the code regarding to plot the data of company for april 1st week sales graph. To demonstrate that i have designed my own data set and save that data in CSV File.
Basic requirement to run this program and code are following
1- Python
2- Juypter Notebook
3- pandas
4- matplotlib
5- dataset (In my case it is CSV File)
Python
I have installed Python 3.7. If you are new please download that first.
Note:- Download the python from anaconda site and download distribution version, Because with distribution version all required library will be installed, User don't need to download that separately.
To Check python is installed correctly please open cmd and run the following command.
C:\Users\HP>python
When you run the command then it will show you the currently installed version of python in your system.
Opening of Jupyter Notebook
Open the CMD and run the following command
C:\Users\HP>jupyter notebook
Now the Screen will look Like This
Now The Complete Code is-
Step 1:- Defining of Pandas Lib, Numpy Lib
Step 2:- Reading the CSV File. In this Case i have the location of CSV File is same as of my jupyter directory
Step 3:- Defining the Name of Columns
Step 4:- Printing of read data.
Step 5:- Definng of matplotlib
Step 6:- Creating the plot parameter
Step 7:- Running of Final Code.
No comments:
Post a Comment