Questions tagged as 'csv'

1
answer

Read an Excel file .csv (C ++)

I am trying to read data from an Excel file saved in csv format, my Excel file has six rows and 49 columns, as you can see in the photo: I want to read data from that file, I'm doing this code: ifstream inFile; inFile.open("datacsvforma...
asked by 15.04.2018 / 01:49
1
answer

Delete rungs from a Python csv

With the following code I convert an XLSX into CSV. I need to delete the first 10 lines of the resulting csv. How could I do it? # encoding=utf8 import sys import xlrd import csv reload(sys) sys.setdefaultencoding('utf8') def csv_from_excel...
asked by 20.12.2017 / 18:17
1
answer

List of CSV lists in Python

Through the CSV that I leave at the end of the code I get the information that will be modified with my code. The problem is that when I have the information I want and I want to save it in a new CSV I can not because I only copy the first row o...
asked by 07.12.2017 / 15:07
1
answer

Error "Single positional indexer is out of bounds" when reading csv

When I run the following code: from pandas import Series from matplotlib import pyplot from statsmodels.tsa.seasonal import seasonal_decompose series = Series.from_csv('GOOG.csv', header=0) result = seasonal_decompose(series, model='multiplica...
asked by 03.12.2017 / 18:56
1
answer

Separate repeated values from a column in csv Python

I'm wanting to work with a CSV in Python. ID Inventory Domain Requests Impressions Fill Rate 123456 auto neighborhoodscout.com 11402 26 0.23 123456 auto s...
asked by 03.10.2017 / 23:30
1
answer

How can I read a certain line of a csv file, keeping in mind that the process was stopped?

This in the dilemma of how to do to read a csv of 1,000,000 records and go back to the line that process previously. This would happen when the process stops in the middle, that is, I need to return it from the last point. I imagined how to w...
asked by 02.06.2017 / 03:40
1
answer

Save a series of Dataframes in a single python

I'm using a function that uses all the values of a column hosted in a file .csv The result of the function is another column with numeric values that is hosted in a previously created .csv file. To select the column I use ilo...
asked by 09.05.2017 / 00:46
1
answer

In C remove commas from a csv file and jump line

Hello, I have this program that reads and prints the csv file which is a list of students that goes in this format name, surname, ballot, age, email and prints the list like this: name, surname, ballot, age, email name, surname, ballot,...
asked by 01.05.2017 / 23:20
4
answers

Process large CSV files

Good morning folks, I have a query to ask you. I have to upload and process large CSV files with many records. Currently they are uploading and processing via AJAX but the browser hangs while the server is running correctly but does not give a r...
asked by 15.03.2017 / 15:23
0
answers

Export query to csv with php

I have the following code to export a query to csv with php but it does not work, you know how I can get export the query to csv with php require '../conn.php'; $sql = '(SELECT *) UNION ALL (SELECT * FROM senders INTO OUTFILE 'prueba....
asked by 14.10.2018 / 04:48