Questions tagged as 'csv'

1
answer

How can I replace multiple texts using Replace?

I'm looking to replace several strings and then write them to a .csv file Everything works well when I replace a single text, but when wanting to replace 2 or more, I only take the last replacement text, which only allows me to put a string a...
asked by 05.06.2018 / 20:18
1
answer

Get a list with the contents of a column of a csv file

I'm looking to access all the values in the ddomain field in my list and create another new list with those values. I think that with a for item in your_list it could be done but I can not find the form. with open("Top20_Media_10...
asked by 11.12.2017 / 20:07
2
answers

Avoid blank lines when reading a .csv with opencsv in Java Android

I use the opencsv library to read the contents of a .csv file I have the following: String fileName = "file:///storage/sdcard1/maptest/cvs_test1.cvs"; final File file = new File(Uri.parse(fileName).getPath()); try { CSVReader reader =...
asked by 18.11.2017 / 17:50
3
answers

Python copying a column from a .txt to a .csv, problems with decimals

I'm creating a numpy array called a table, in the fifth column I want to save a list of numbers that I have in a .txt file I do it with the following code: tabla[:, 4] = np.fromfile('/home/lucia/Documentos/Base de datos de imagenes/TID2013/...
asked by 09.06.2017 / 22:00
2
answers

csv data file as array in Python

Hello everyone I have a question, I have a data file of 4 columns (time, x, y, z) and I made an array to divide the time into small parts / strips and I want to count the data numbers that there are part / fringe I thought I would use a counter...
asked by 20.01.2017 / 22:50
1
answer

Compare two CSV files, print out an output with added values using Java

I have the following .csv files read in Java. The first csv file contains the following information (semesters) : 3,Primavera 5,Primavera 5,Verano 12,Primavera 10,Verano 22,Otono The second csv file contains (races) : 3,bachiller en...
asked by 16.03.2017 / 20:36
2
answers

Read file format CSV in Java

I would like to know how I have to proceed to read a file in CSV with Java and skip a comma of separation between each field. Read each space that is found but I want it to be each comma (,) how could I do it? This is my code: class Pruebas...
asked by 07.12.2016 / 23:14
1
answer

Filter data from a CSV table

I have an ASCII file and this I do the conversion from excel and I separate it by spaces or also with commas. But I want to filter only some data with all its row that have a common pattern (9999) and based on this create a new table that con...
asked by 25.09.2016 / 04:23
2
answers

Save data from a csv to a list in python

I have a .csv file and from this I need to operate with the last two columns (they are digits) and without occupying "pandas", I have tried it in several ways but I do not succeed .. These are my .csv data id id2 id3 id4 1...
asked by 26.09.2018 / 03:16
1
answer

How to read data from a .csv file and save only some in an arraylist

I am reading a .csv file as follows BufferedReader rd = new BufferedReader( new FileReader ("C:/Users/user/Documents/running-example.csv")); String line = null; ArrayList lista = new ArrayList(); while ((line = rd.r...
asked by 26.02.2018 / 19:39