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