- Instalaciones:
npm install -D jest babel-jest @babel/preset-env @babel/preset-react
npm install -D @testing-library/react @types/jest jest-environment-jsdom
- if Fetch API:
import requests | |
import json | |
import csv | |
from io import StringIO | |
def read_csv(file_path): | |
with open(file_path, mode='r', encoding='utf-8') as file: | |
csv_reader = csv.reader(file) | |
csv_data = list(csv_reader) | |
return csv_data |