0% found this document useful (0 votes)
4 views1 page

Python Pandas and Seaborn Basics

Uploaded by

heymayank
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views1 page

Python Pandas and Seaborn Basics

Uploaded by

heymayank
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

Python Pandas :

import pandas as pd
df= [Link]()

-DF: Data structure of pandas works 2d,rows and cols.


-it is: Memory Efficient,Data Alignment,Reshaping,Merge and join,Time Series

-Reindexing : It places NA/NaN in that location where the values are not present in
the previous index.

-scatter plot matrix: Scatter_matrix


-ndarray: array class in python [Link]
-iLoc: The iloc property gets, or sets, the value(s) of the specified
[Link] both row and column with an index.
To access more than one row, use double brackets and specify the indexes,
separated by commas:
[Link][[0, 2]]
-Loc: The loc property gets, or sets, the value(s) of the specified [Link]
both row and column with a label.
To access more than one row, use double brackets and specify the labels,
separated by commas:
-[Link][["Sally", "John"]]
-df.drop_duplicates(), we can remove duplicate rows from the DataFrame.
-drop() method to specify the index of the rows that we want to remove from the
DataFrame.
-p1[~[Link](p2)] - present in seris A not present in Series B
-value_counts() : frequency counts
-to_excel - DF to excel
-df.sort_values() - sorting the dataframe
-

python Seaborne:
-color_palette(): to give color to plots
-.histplot(): show histograms

You might also like