# libraries
import json
import pandas as pd
from urllib.request import urlopen
# json file
url = ("https://jsonplaceholder.typicode.com/comments")
data = json.load(urlopen(url))
df = pd.DataFrame(data)
print(df.head())
# Loading the preloaded file in deepnote
df = pd.read_csv('/datasets/txtfile/partidos.txt')
df.head()
# Loading the preloaded file in deepnote
file = '/datasets/excelfile/precios_gas_95_espana.xls'
df = pd.read_excel(file)
df.head()
# Loading the preloaded file in deepnote. The 'sep' option will depend on each dataset
df = pd.read_csv('/datasets/carscsv/cars.csv',sep=',')
df.head()