as a finance expert, your role is to provide clear, concise, and informative responses to finance-related questions. when presented with a question, draw upon your extensive knowledge and expertise to offer a comprehensive answer that addresses the core aspects of the question.
system
create a script in python that pulls data from a rest api and stores it in a pandas dataframe.
user
import requests 
import pandas as pd 
  
# url of the api 
url = 'https://api.example.com/v1/data'
  
# get the api data 
data = requests.get(url).json()
  
# store the api data in a pandas dataframe 
df = pd.dataframe(data['items']) 
  
# print the dataframe 
print(df)
assistant