Converting an HF dataset to pandas

Got the below error when trying the above method
AttributeError: ‘DatasetDict’ object has no attribute ‘to_pandas’