What is the shape of the data frame df defined in the below-shown code? import pandas as pd data = [{‘a’: 1, ‘b’: 2}, {‘a’: 5, ‘b’: 10, ‘c’: 20}] df = pd.DataFrame(data)

Questions & AnswersCategory: Programming LanguageWhat is the shape of the data frame df defined in the below-shown code? import pandas as pd data = [{‘a’: 1, ‘b’: 2}, {‘a’: 5, ‘b’: 10, ‘c’: 20}] df = pd.DataFrame(data)
Adam asked 2 years ago

What is the shape of the data frame df defined in the below-shown code?

import pandas as pd
data = [{'a': 1, 'b': 2}, {'a': 5, 'b': 10, 'c': 20}]
df = pd.DataFrame(data)

a. (2,3)
b. Data Frame df is not created
c. (2,2)
d. (3,)