Questions tagged as 'csv'

1
answer

Read csv data double quote in python

I'm trying to read data from a csv file, especially numbers but I'm getting an unexpected result. example: csv: "17.913,92";"17.913,92"; import csv with open('eggs.csv', 'rb') as csvfile: reader = csv.reader(csvfile, delimite...
asked by 15.06.2018 / 20:32
1
answer

Error in CSV file, Python

I want to read a file on my PC but I get an error, maybe you can help me import numpy as np import csv import logging csvFile = 'C:/Users/Usuario/Desktop/house/GFG.csv' def __init__(self, _data=csvFile, _shortTerm=10, _longTerm=15): s...
asked by 12.06.2018 / 22:52
0
answers

How to compare the value of an input text with a value of a csv file

Hello, I am doing a validation of the value of an input type text, and I want to validate it if it exists in a csv file, if it exists that performs certain actions, I was doing it with switch case, but they are more than 200 numbers of series....
asked by 20.06.2018 / 03:52
1
answer

How to validate the download of a file when there is no data, using spring?

I have the following method in the controller that passes parameters to a service method to do the query search, and the information is downloaded into a csv text file @RequestMapping(value= "/views/formulario", method = RequestMethod.PO...
asked by 11.06.2018 / 00:22
2
answers

Memory consumption when processing .csv file

First of all, I would like to thank you if someone takes the trouble to read the question and second to warn that I am a total novice. I'm doing this for a hobby. I'm doing a program to perform queries on very large .csv files with records fr...
asked by 06.06.2018 / 10:25
0
answers

Create csv to import woocommerce products

I am creating a web with wordpress in local and I want to create a csv with my products to import them into woocommerce. How should I do this task? Should I create a list of products in excel? What fields should I create to be effective when imp...
asked by 20.06.2018 / 16:09
0
answers

Save .csv file in MySQL

I need to save a .csv file in MySQL with the following format: 9044;2018/10/05 The table in the database is as follows: id_criptomoneda; precio_dolar; fecha And I execute the following command with the related id of another tabl...
asked by 15.05.2018 / 19:28
1
answer

Read a CSV file and create an object with its data

I need a little help. I have a CSV file and I am reading it like this: public class LectorDeArchivosCSV { private List<Alumno> listaAlumnos; public LectorDeArchivosCSV() { listaAlumnos = new ArrayList<>(); } public List<Al...
asked by 16.04.2018 / 00:19
0
answers

Parsing JSON with jq

When consulting a API I get the following JSON : { "Count": 1, "Data": [ { "BlockedCount": 0, "BouncedCount": 0, "ClickedCount": 0, "DeferredCount": 0, "DeliveredCount": 0, "HardBouncedC...
asked by 18.04.2018 / 13:04
0
answers

Export array to csv or xls with php and oracle

I need to be able to export an array to csv, please, the code: <?php require_once ("./conexion/conexion.php"); if (!$conn){ $msg = "Cannot connect to Oracle ".oci_error(); } else { $msg = "Connected to Oracle"; } $sql = 'SELECT *...
asked by 13.03.2018 / 19:04