Skip to content

Timestamp not returned as datetime objects in streaming mode #4533

@lhoestq

Description

@lhoestq

As reported in (internal) huggingface/dataset-viewer#397

>>> from datasets import load_dataset
>>> dataset = load_dataset("ett", name="h2", split="test", streaming=True)
>>> d = next(iter(dataset))
>>> d['start']
Timestamp('2016-07-01 00:00:00')

while loading in non-streaming mode it returns datetime.datetime(2016, 7, 1, 0, 0)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions