Capgemini Data Analyst
Capgemini Data Analyst
Capgemini Data Analyst
1. What is the Difference Between a Shallow Copy and Deep Copy in python?
Deepcopy creates a different object and populates it with the child objects of the
original object. Therefore, changes in the original object are not reflected in the copy.
copy.deepcopy() creates a Deep Copy. Shallow copy creates a different object and
populates it with the references of the child objects within the original object. Therefore,
changes in the original object are reflected in the copy. copy.copy creates a Shallow
Copy.
1. To delete duplicate values in a column, select the highlighted cells, and press
the delete button. After deleting the values, go to the ‘Conditional Formatting’
option present in the Home tab. Choose ‘Clear Rules’ to remove the rules from
the sheet. 2. You can also delete duplicate values by selecting the ‘Remove
Duplicates’ option under Data Tools present in the Data tab.
Sets: The sets are used to compute a condition on which the dataset will be prepared. Data
will be grouped together based on a condition. Fields which is responsible for grouping are
known assets. For example – students having grades of more than 70%.
Question set 2
TCL stands for Transaction Control Languages. These commands are used for
maintaining consistency of the database and for the management of transactions
made by the DML commands.
1. COMMIT :
This command is used to save the data permanently.
2. ROLLBACK :
This command is used to get the data or restore the data to the last savepoint or
last committed state.
3. SAVEPOINT :
This command is used to save the data at a particular point temporarily, so that
whenever needed can be rollback to that particular point.
The Pandas std() is defined as a function for calculating the standard deviation of the
given set of numbers, DataFrame, column, and rows.