Pergunta de entrevista da empresa CoreStack

Q.2: He gave me one URL(api/link) and asked me, using this link get the json data and covert it into pandas data frame.

Resposta da entrevista

Sigiloso

7 de jan. de 2022

Ans2: That was the question where I took more than 25 minutes complete it. One year ago I had done 100 to 1000 times the same task in 2 minute but due to gap I am not able to complete it more than 20 minutes even interviewer asked me to use google and believe me I used google, when I completed it interviewer have done from his side. I am sharing the code : import requests import pandas as pd response = requests.get(url="https://jsonplaceholder.typicode.com/comments") data=pd.DataFrame(response.json()) data.to_csv("/home/xyz/project/test.csv") print(data)

3