Q. What is the difference between a dictionary and a set?
A. Dictionary has key value pair
set does not have key value pairs
set has only unique elements.
Q. How to create a series with letters as index?
A. Series({‘a’:1,’b’:2}) will create a and b as index. 1 and 2 as their respective values.
python data science interview questions and answers python is a high-level programming language using Data Science Now a days
Q. Which function can be used to filter a DataFrame ?
A. The query function can be used to filter a dataframe.
Q. What is the function to create test train split on Data Science?
A. The following function is used to create test train split from the data
From sklearn.metrics import test_train_split.