Version 2.1.0 comes with that method.
If no other code is in between from datasets import Dataset
and my_dataset = Dataset.from_pandas(df['text','encodings'])
, e.g., an import, such as Torch Dataset
, that could overshadow HF Dataset
, something is off with your environment, so it’s best to delete it and create a new one.