I tried this code, expecting it to use IPython's display function:
import pandas as pd
data = pd.DataFrame(data=[tweet.text for tweet in tweets], columns=['Tweets'])
display(data.head(10))
But I get an error message that says NameError: name 'display' undefined. Why? How do I make it so that I can use display?