Completed code:
import pandas as pd
data = [
{'COLOUR': 'Red', 'NAME': 'Apple', 'QTY': 10},
{'COLOUR': 'Blue', 'NAME': 'Berry', 'QTY': 15},
{'COLOUR': 'Green', 'NAME': 'Guava', 'QTY': 20}
]
df = pd.DataFrame(data)
print(df)
Corrections made:
1. Filled the first blank with `pandas` to import the library.
2. Added `'COLOUR': 'Green'` for the third dictionary to ensure all rows have the same keys.
3. Used `data` inside `pd.DataFrame()` to create the DataFrame.
4. Printed the DataFrame with `print(df)` to display the output as given.
This ensures the DataFrame matches the required structure and prints the correct table.