Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
2 views

Python_Pandas

Uploaded by

heymayank
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

Python_Pandas

Uploaded by

heymayank
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

Python Pandas :

import pandas as pd
df= pd.dataframe()

-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 numpy.ndarray
-iLoc: The iloc property gets, or sets, the value(s) of the specified
indexes.Specify both row and column with an index.
To access more than one row, use double brackets and specify the indexes,
separated by commas:
df.iloc[[0, 2]]
-Loc: The loc property gets, or sets, the value(s) of the specified labels.Specify
both row and column with a label.
To access more than one row, use double brackets and specify the labels,
separated by commas:
-df.loc[["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[~p1.isin(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