Questions tagged as 'csv'

0
answers

No csv file reading on d3

I'm trying to make a .md file that houses three views. When the second visualization (graphic) arrives, it gives the error below in the browser console. Iamtryingtoloadacsvfilethatisinthesamescriptfolderinjsthatcallsit.d3.csv("data3.csv", fu...
asked by 16.12.2017 / 03:14
1
answer

Error accessing dictionary index

I creating a program to read from a file csv a set of coordinates and store them in a DataFrame object. The code is below df = pandas.read_csv(os.getcwd() + "/Coordinates.csv") print(df["Longitude"]) The csv file is as follows...
asked by 09.11.2017 / 00:30
2
answers

Sort equal queues

I have 4 columns in excel: A, B, C, D right? But I need to sort it to make a comparison because it's all the disorganized information I explain: Original Archive in .CSV (Disorganized Information) A(Inglês) B (Tradução)...
asked by 10.10.2017 / 13:08
1
answer

Update a CSV line without having to go through it all C #

Would you like to update a specific line of the CSV file? I have the information of which line I want to add information, I currently have the code that runs through the file and when it arrives on the line I want it updates the line and continu...
asked by 05.10.2017 / 20:47
1
answer

How to apply recursive action in csv.DictReader

Hello, I created the following code but it only applies the function to create the txt file using the last record of the CSV table, how do I get it to create a file for each record of that table? import csv import os with open('lista.csv') as...
asked by 13.10.2017 / 10:47
1
answer

Read CSV worksheet data to generate custom files

Friends, I'm having trouble creating a Python code that reads information from a CSV and creates TXT files with custom names according to the content of the CSV (reads the cell item and generates the file esse_name.txt) Can someone give me a lig...
asked by 13.10.2017 / 03:03
0
answers

Export MySQL data to CSV file in UTF-8 format

I am using the Workbench tool to access data from my MySQL database, but when I try to export the returned data to a *. CSV file I am not able to export the same in the format > UTF-8 , but it is exported to any other file format (XML,...
asked by 03.10.2017 / 19:45
1
answer

Write CSV file in certain line passed by parameter C #

How to write to a CSV file, in a certain line that I will receive by parameter, example of the beginning of the code: public void EscreverCSV(string caminho, int linha, string mensagemErro) { using (StreamWriter wt = new StreamWr...
asked by 03.10.2017 / 16:21
1
answer

Is there a size limit on csv writerow?

I'll create a CSC of 1,341 lines (with header). In Python 3 I used the csv commands, but the created file has 1,282 lines Line data is extracted from 1,340 PDFs, metadata. I created a list and a print to check, it's extracting everything righ...
asked by 16.09.2017 / 17:00
1
answer

Python - how to merge multiple csv files

I have 4 folders, and each one of them is stuffed with csvs of 3 types (ap, peers, visits). I'm a beginner in python, but I wanted to create a python script that would merge the files that are peer, so I got a single file with the lines of al...
asked by 10.07.2017 / 18:48