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, columns=[‘a’, ‘b’])
Questions & Answers › Category: Programming Language › 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, columns=[‘a’, ‘b’])