How to create dataset with specifying features

I have a pandas dataframe with an id column (a string). I just want to try out how to specify features for creating a dataset:

features = Features({'id': Value('string')})
Dataset.from_pandas(df[['id']], features=features)

But got error:

TypeError: argument of type ‘Value’ is not iterable

Is there any specific tutorial showing how to do this?

False alarm. I restarted my runtime and only import whatever i need in order to isolate modules, and the problem goes away. So I am suspecting there may be name conflict with another library.