When I save the data to csv file only records with id 103 are saved and records having ids 101 and 102 are not available.
import pandas as pd
import requests as rq
for vehicleList in range(101, 103):
vehicleList = vehicleList + 1
x = str(vehicleList)
r = rq.get('https://api.tfl.gov.uk/vehicle/' + x + '/arrivals')
r = r.text
df = pd.read_json(r)
df.to_csv('filename.csv')
lower_case_with_underscoresstyle.