File size: 269 Bytes
5fa1a76
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
Let's illustrate this:
thon

prepare table + question
data = {"Actors": ["Brad Pitt", "Leonardo Di Caprio", "George Clooney"], "Number of movies": ["87", "53", "69"]}
table = pd.DataFrame.from_dict(data)
questions = [
     "how many movies does Leonardo Di Caprio have?