🐍 Pythons learning
PYTHON • DATA SCIENCE • AI

Master Python, Data Science & Machine Learning

#Python #Pandas #NumPy #MachineLearning #Projects
Showing posts with label data science. Show all posts
Showing posts with label data science. Show all posts

Friday, May 15, 2020

Overview of Data Science | Python course_13

Overview About Data Science:

congratulation !! finally we done first section of python crash course_Data Science. In this section we cover following Topic:

1] Numpy
2] Pandas
3] Matplotlib
4] Seaborn
5]Pandas Built in data visualization

Overview of Data Science
fig 01) Overview of Data Science | Python course_13

Tuesday, May 12, 2020

Pandas Built in Data Visualization pandas to excel Tutorial

Pandas Built in Data Visualization Tutorial:
Want to learn Pandas Built in Data Visualization?
Welcome to my python crash course blog post.In the previous blog we see Data Visualization with Matplotlib and seaborn,In this lecture we will learn about pandas built-in capabilities for data visualization! In the next blog we will see what is pandas to excel ? It's built-off of matplotlib, 
but it baked into pandas for easier usage!
Let's take a look!
import numpy as np
import pandas as pd
%matplotlib inline
There are some fake data csv files you can read in as dataframes:

Style Sheets

Matplotlib has style sheets you can use to make your plots look a little nicer. These style sheets include plot_bmh,plot_fivethirtyeight,plot_ggplot and more. They basically create a set of style rules that your plot follow. I recommend using them, they make all your plots have the same look and feel more professional. You can even create your own if you want your company's plots to all have the same look (it is a bit tedious to create on though).
Here is how to use them

Plot Types

There are several plots types built-in to pandas, most of them statistical plot in nature:
  1. df.plot.area
  2. df.plot.barh
  3. df.plot.density
  4. df.plot.hist
  5. df.plot.line
  6. df.plot.scatter
  7. df.plot.bar
  8. df.plot.box
  9. df.plot.hexbin
  10. df.plot.kde
  11. df.plot.pie

Pandas Built in Data Visualization pandas to excel
fig 01) Pandas Built in Data Visualization pandas to excel  Tutorial 

Sunday, May 10, 2020

seaborn for data visualization tutorial

SEABORN FOR DATA VISUALIZATION TUTORIAL part_02:

Want to learn Seaborn for Data Visualization part02 Tutorial?
Hello everyone, today I have write a post related to Seaborn for Data Visualization. this is second part of this blog post. if you want to see first part then please see my blog post. so Let's start friends:
In this blog post I have covered the Grid, Regression plos, markers and size aspect Ratio.
(NOTE THIS: For detailed please open drive link)

Grid

Grid are general types of plots that allow you to map plot types to rows and columns of a grid, this helps you create similar plots separated by features.

PairGrids

Pairgrids is a subplot grid for plotting pairwise relationships in a dataset.

pairplots

pairplots is a simpler version of PairGrid (you'll use quite often)

Facet Grids

FacetGrids is the general way to create grids of plots based off of a feature:

JointGrids

JointGrids is the general version for jointplot() type grids, for a quick example:

Regression Plot

Seaborn has many built-in capabilities for regression plots, however we won't really discuss regression until the machine learning section of the course, so we will only cover the lmplot() function for now.
lmplot allows you to display linear model, but it also conveniently allow you to split up those plots based off of features, as well as coloring the hue based off of feature.
Let's explore how this works:
Working with Markers

seaborn for data visualization
fig 01) seaborn for data visualization tutorial


l
mplot kwargs get passed through to **regplot** which is a more general form of lmplot(). regplots has a scatter_kws parameter that get passed to plt.scatter. So you want to set the parameter in that dictionary, which corresponds (a bit confusingly) to the squared markersize. In other words you end up passing a dictionary with the base matplotlib arguments, in this case, s for size of a scatter plot. In general, you probably won not remember this off the top of your head, but instead reference the documentation.

Saturday, May 9, 2020

Seaborn Library in python for Data Visualization Tutorial

Seaborn for Data Visualization:

Want learn Seaborn Library in python for Data Visualization Tutorial?
Hello everyone, I'm already post the blog of Data Visualization for Matplotlib so it's time to see second part of the post Data Visualization with Seaborn liabrary.  Let's start toward the seaborn.
There the different plot are used in Saborn, we have to see  some plot in this blog:

Distribution Plots

Let's discuss some plots that allow us to visualize the distribution of a data set. These plots are:
  1. distplot
  2. jointplot
  3. pairplot
  4. rugplot
  5. kdeplot

Categorical Data Plots

Seaborn Library in python for Data Visualization
fig 01) Seaborn Library in python for Data Visualization Tutorial 

Thursday, May 7, 2020

Matplotlib for Data Visualization python

Wednesday, May 6, 2020

pandas in python tutorials-beginners

pandas in python tutorials:

In this section of the blog we will learn how to use pandas for data analysis. You can think of pandas as an extremely powerful version of Excels, with a lot more features. In this section of the course, you should go through the notebooks in this order for this please ope below drive link:

what is pandas in python ?

In computer programming language, pandas is a library written for the Python language for data manipulation and analysis the data.It's also performed the data structures and operation for manipulating numerical table and times series data.
Some Latest important update about pandas :
What’s new in 1.0.5 (June 17, 2020)

How to install pandas in python ?

WE USE THIS FOLLOWING COMMAND LINE FOR INSTALL PANDAS
 pip install pandas !

How to import pandas  in python ?

WE USE THIS FOLLOWING COMMAND LINE FOR import  PANDAS
import pandas as pd !

  1. Introduction to Pandas
  2. Series
  3. DataFrames
  4. Missing Data
  5. GroupBy
  6. Merging,Joining,and Concatenating
  7. Operations
  8. Data Input and Output
SOME EXAMPLE ON PANDAS:
3.1 example:
Let us now create an indexed DataFrame using array.

import pandas as pd
data = {'Name':['sachin', 'pagar', 'sunil', 'Rahul'],'Age':[28,34,29,42]}
df = pd.DataFrame(data, index=['rank1','rank2','rank3','rank4'])
print df
Its output is as follows −
Age Name
rank1 28 sachin
rank2 34 pagar
rank4 42 Rahul
rank3 29 Sunil

what is numpy in python with example-tutorial

what is numpy in python ?

Please note, this is not meant to be a comprehensive overview of Python or programming in general, if you have no programming experience, don't worry simply read by blog post.
what is numpy in python with example
fig 01)what is numpy in python with example-tutorial


what is numpy in python ?

JSON Module in Python: Parsing and Writing JSON Data

The json module in Python allows you to encode and decode JSON (JavaScript Object Notation) data. It provides built-in methods for convertin...