map()
function?map()
function in Python applies a given function to each item in an iterable (such as a list or tuple) and returns an iterator that yields the results. It is useful when you want to perform an operation on each item of a sequence, such as transforming or processing data.apply()
function in the Pandas library?apply()
function in Pandas allows you to apply a function along the rows or columns of a DataFrame. It is useful when you need to perform a custom transformation or operation on the data. This can be used for data wrangling tasks, such as cleaning or modifying values in a DataFrame.join()
, union()
, and intersect()
?join()
is used to combine two datasets based on a common column, similar to SQL joins. It allows you to merge related data from different sources.union()
is used to combine two datasets by appending one dataset to another. It effectively stacks the rows of both datasets together, as long as the columns match.intersect()
returns the common elements (rows) between two datasets. This operation finds the intersection, similar to the SQL INTERSECT
operation.groupby()
function in Pandas?groupby()
function in Pandas allows you to split data into groups based on some criteria (e.g., column values) and apply a function to each group. It is useful for aggregating data, such as computing the mean, sum, or count for each group.list
and a tuple
in Python?truncate()
and delete()
in SQL?truncate()
removes all rows from a table, but it does not log individual row deletions, making it faster than DELETE
. It also resets auto-increment values.delete()
allows you to remove specific rows based on a condition and can be rolled back if used within a transaction.shuffling
in data processing?atomic operations
in databases?