O'Reilly logo
  • Damodar Chetty thinks this is interesting:

data = [{'a': i, 'b': 2 * i} for i in range(3)] pd.DataFrame(data)

From

Cover of Python Data Science Handbook

Note

for in