Pandas
For Data Analysis
Most Used Pandas Function:
read_csv(): Reads a CSV file into a pandas DataFrame.
head(): Returns the first n rows of a DataFrame.
info(): Provides a concise summary of a DataFrame including its data types and memory usage.
describe(): Generates descriptive statistics of the DataFrame's numerical columns.
shape: Returns a tuple representing the dimensionality of the DataFrame.
isnull(): Detects missing values in the DataFrame.
dropna(): Drops rows with missing values from the DataFrame.
fillna(): Fills missing values in the DataFrame with specified values.
groupby(): Groups the DataFrame using specified columns and applies aggregate functions.
merge(): Merges two DataFrames based on a common column.
pivot_table(): Creates a spreadsheet-style pivot table as a DataFrame.
apply(): Applies a function along any axis of the DataFrame.
plot(): Generates various plots like line, bar, scatter, etc., based on the data.
to_csv(): Writes the DataFrame to a CSV file.
corr(): Computes pairwise correlation of columns, excluding NA/null values.
loc[]: Accesses a group of rows and columns by labels or a boolean array.
iloc[]: Accesses group of rows and columns by integer position.