Tajamul Khan
@Tajamulkhann
[Link](): Creates an array from
a list or tuple.
[Link](): Generates an array
filled with zeros.
[Link](): Generates an array
filled with ones.
[Link](start, stop, step):
Creates an array with evenly
spaced values within a range.
[Link](start, stop, num):
Generates an array with evenly
spaced numbers between two values.
[Link](n): Creates an identity
matrix.
[Link](shape, fill_value):
Creates an array filled with a
specified value.
[Link](): Allocates an array
without initializing its values.
@Tajamulkhann
[Link](a, b): Element-wise
addition of arrays.
[Link](a, b): Element-wise
subtraction of arrays.
[Link](a, b): Element-wise
multiplication.
[Link](a, b): Element-wise
division.
[Link](a): Computes the square
root of each element.
[Link](a, b): Raises each
element of a to the power of b.
[Link](a, b): Element-wise modulus
operation.
[Link](a, min, max): Limits
values in an array to a specified
range.
@Tajamulkhann
[Link](): Computes the mean of
the array.
[Link](): Computes the median
of the array.
[Link](): Computes the standard
deviation.
[Link](): Computes the variance.
[Link](): Returns the minimum
value in the array.
[Link](): Returns the maximum
value in the array.
[Link](a, q): Computes the
qth percentile.
[Link](): Computes the
weighted average of an array.
@Tajamulkhann
[Link](): Computes the sum of
elements.
[Link](): Computes the product of
elements.
[Link](): Cumulative sum of
array elements.
[Link](): Cumulative product
of array elements.
[Link](): Index of the maximum
value in an array.
[Link](): Index of the minimum
value in an array.
[Link](): Checks if all elements
evaluate to True.
[Link](): Checks if any element
evaluates to True.
@Tajamulkhann
[Link](a, b): Computes the dot
product of two arrays.
[Link](a, b): Performs matrix
multiplication.
[Link](a): Computes the
inverse of a matrix.
[Link](a): Computes the
determinant of a matrix.
[Link](a): Computes the
eigenvalues and eigenvectors.
[Link](a): Computes the
norm of a vector or matrix.
[Link](a): Computes the QR
decomposition.
[Link](a): Computes the
Singular Value Decomposition
(SVD).
@Tajamulkhann
[Link](): Generates random
numbers in [0, 1).
[Link](low, high):
Generates random integers within a
range.
[Link](mean, std):
Generates random samples from a
normal distribution.
[Link](): Chooses random
elements from an array.
[Link](): Shuffles an
array in place.
[Link](): Sets the seed
for random number generation.
[Link](): Generates
samples from a uniform
distribution.
[Link](): Generates
samples from a Poisson
distribution.
@Tajamulkhann
[Link](a, new_shape): Reshapes
an array without changing data.
[Link](): Flattens a multi-
dimensional array.
[Link](): Permutes the
dimensions of an array.
[Link](): Changes the shape and
size of an array.
np.expand_dims(): Expands an array
by adding a dimension.
[Link](): Removes axes of
length one.
[Link](): Returns a flattened
array.
[Link](), [Link](): Stacks
arrays horizontally or vertically.
@Tajamulkhann
[Link](condition): Returns
indices where a condition is True.
[Link](a, indices): Selects
elements from an array.
[Link](a): Finds unique
elements in an array.
[Link](): Returns indices of
non-zero elements.
[Link](): Returns indices to
sort an array.
[Link](a, indices): Splits an
array into sub-arrays.
[Link](): Reverses the order of
elements.
[Link](): Rolls elements along an
axis.
@Tajamulkhann
[Link](data): Creates a
DataFrame from data.
[Link](data): Creates a Series.
pd.read_csv(filepath): Reads a CSV
file into a DataFrame.
pd.read_excel(filepath): Reads an
Excel file into a DataFrame.
[Link].from_dict(data):
Creates a DataFrame from a
dictionary.
pd.read_sql(): Reads data from a
SQL database.
pd.read_json(): Reads a JSON file.
pd.read_html(): Parses HTML tables
into DataFrames.
@Tajamulkhann
[Link](): Displays the first 5
rows.
[Link](): Displays the last 5
rows.
[Link](): Displays a summary of
the DataFrame.
[Link](): Provides summary
statistics.
[Link]: Returns the dimensions
of the DataFrame.
[Link]: Lists column names.
[Link]: Returns the data types
of columns.
df.memory_usage(): Returns memory
usage.
@Tajamulkhann
[Link][row, col]: Selects data by
integer-based indexing.
[Link][row, col]: Selects data by
label-based indexing.
[Link][row, col]: Accesses a single
value by label.
[Link][row, col]: Accesses a
single value by integer index.
[Link](expr): Queries the
DataFrame with a string
expression.
[Link](): Filters rows or
columns.
[Link](): Randomly samples
rows.
df.select_dtypes(): Selects
columns of a specific data type.
@Tajamulkhann
df['col']: Accesses a column.
[Link](labels): Drops rows or
columns.
[Link](): Renames rows or
columns.
df.set_index(col): Sets a column
as the index.
df.reset_index(): Resets the index
to default.
[Link](): Inserts a new column.
[Link](): Creates new columns.
[Link](): Removes a column.
@Tajamulkhann
Follow for more!