import datasets data = datasets.load_dataset('python-state-changes.py', streaming=True) for row in data['train']: print(row) break