Questions tagged as 'csv'

1
answer

Save an array as a .csv file in Python

I'm going to generate a 3000 x 14 matrix in Python and then I want to save it in a file, I'm using the command: import numpy as np tabla = np.random.random((3000,14)) np.savetxt('tabla.dat', tabla) This works well. The reason that brings...
asked by 06.04.2017 / 18:12
0
answers

Problems when exporting data to csv file

I have my postgrSql database from where I need to extract my data to a csv file but at the moment of executing the command I am presented with the following message: ERROR: no se pudo abrir el archivo «C:\Users\TECSINFO\Desktop\archivo\pru...
asked by 04.10.2017 / 23:24
1
answer

Replace tabs with commas in a .csv file

I have a .csv file that represents a table with 12931 entries. For example: ID A B C 1 9 hola despues de hola va una coma 383 2 8 esto es sin comas 383 3 2 hola los tabs en este campo son una coma estoy en B 383 We...
asked by 06.02.2017 / 18:33
2
answers

Manipulate .asc file with PHP and MySQL

I want to upload a file .asc and insert it into my MySQL database. The content of the file is similar to this:    3884 | 5000007 | 160 | 1 | IN | 160 || HME980330SL3 | MESJ540212HDFRNR02 | 14.71800 | 0 | 0 | 0 | 0 | 0 | 8827.700 | 7...
asked by 26.12.2016 / 09:18
1
answer

CSV in MS-DOS JAVA format

I have a problem when generating my file CSV from JAVA in the OS SunOS 5.10 (in Windows it works correctly) the format I need is MS-DOS try what the following question from the SO English tells me:    link But it d...
asked by 09.01.2017 / 23:12
1
answer

Group records of a CSV file with PHP

Good morning, I want to group disordered records within a CSV file using PHP, I thought about using an Arrangement and looking for identical IDs and organize them one below the other, but I could have files of more than 20 thousand records and I...
asked by 29.11.2016 / 16:01
1
answer

Open file selected by your route - [VB6]

Hi I have a question I hope you can help me, I have a archivo .csv I want to open but you must select the file previously, once selected I get your route and your name, but here comes the problem, as I do to pass your route and name the c...
asked by 21.09.2016 / 20:42
1
answer

Read CSV file and add the fields to a JavaFX tableview

I'm trying to read a file with CSV format which has movie information through a Filereader, add all the elements in a list and then display them in a Tableview in JavaFX. The problem is that I do not execute my method. '/ *  * To change this...
asked by 11.11.2018 / 01:53
1
answer

Problems opening a CSV file with PHP

code that I use to open the file: $tmp_archivo = "file/catalogo.csv"; $archivo = fopen($tmp_archivo, "r"); $row = 0; if($archivo){ while ($datos = fgetcsv($archivo, ",")){ echo utf8_encode($datos[0])."-".utf8_encode($datos[1])."-"....
asked by 06.07.2018 / 07:02
2
answers

Random about a CSV in python?

I want to get a row randomly from the 31 that my CSV file contains. This is my code: import csv import random path="/home/eocampo/Escritorio/porque_pregunta_6.csv" file=open(path,newline='') reader=csv.reader(file) data=[row for row...
asked by 25.05.2018 / 17:19