import requestsqueryStringParams = {"$top": "50","$skip":"200","$filter":"ProductID eq 2205"}headers = {"Content-Type":"application/json"}url = "https://xtremeodatarestapi.azurewebsites.net/odata/OrderLines"# Make the GET requestresponse = requests.get(url, params=queryStringParams, headers=headers)# Make the GET requestjson_data =response.json()data = json_data["value"]# Create DataFrame from JSON datadf = spark.read.json(spark.sparkContext.parallelize([data]))# Show DataFramedf.show(100)