Member Avatar
hi! i want to place the contents of a dictionary into a csv file. Can someone help me with this? i already have the code in reading the csv file import csv reader = csv.reader(open("c:\sample.dat")) for row in reader: print row i want the first element of the row be …
by gishi in Software Development ()
Member Avatar
Hi I am fairly new at pyhton and I am trying to create a program to append a new row of raw input to the bottom of my existing .csv file. So far I have this: import csv x=1 y=1 n=0 citiesx=[] citiesy=[] city_names=[] total=input("How many cities do you have? …
by jarograv in Software Development ()
Member Avatar
I have the folling code which imports my CSV file into the respective columbs on my datagridview I would like to clean the string by removing any " from the string before populating the datagridview. can anyone point me in the right direction please? ...
by Mike Bishop -3 in Software Development ()
Member Avatar
Shows how to convert a comma separated value (csv) string to a list of records, and then do some data processing. The csv strings usually come from csv files created by spreadsheets.
by vegaseat 1,720 in Software Development ()
Member Avatar
I am some issues with my homework which is to create a program that reads the csv files to answer the question, unfortunately my gasp of this isn’t as strong as other. However I have written a majority of my code and the idea is clear but it is clear …
by Timothy_4 in Software Development ()
Member Avatar
Hi, can someone guide me on how to create multiple xml from a csv file. It should locate and replace some date in a template and create file for each line of csv. Thanks in advance. Regards Shaqib
by shaqib in Web Development ()
Member Avatar
Hi Guys, Im a bit puzzled on the best way to store data which will later be saved to a csv. I am doing a record search on a database table which will get cycle through each employee and get the relevent information. Once I have done this I will …
by ogsirus in Software Development ()
Member Avatar
I'n trying to convert a dbf file to a csv file(or anything else really). I found this on the interwebs but I get an error error: I'm not sure which module this is refering to?
by 4evrmrepylrning in Software Development ()
Member Avatar
Hi, I have created TY.py. The Ty.py file executes and runs successfully. I am trying to make its executable using py2exe and by creating setup.py. It is not able to include the requests. I think it is because 'requests' is not present in 'include' folder for python27. The path of …
by har58 in Software Development ()
Member Avatar
My Objective is to define a function, with a pointer to a list of elements of the structure I created as the first parameter, a C-character string (of type char * ) as the second parameter and one of the of the two values,num or name, from the above enumeration …
by senait.kifle.127 in Software Development ()
Member Avatar
Hi All, i would need some advice from you guys from this forum to solve the reading of the CSV file that i had. for example, i have a file which consist of about 2000 records (below are the example of the records) ... Some of the records are with …
by casey.li.146 in Software Development ()
Member Avatar
hi, i have an import csv script but it does not get entered into the database. only "uploaded successfully" and the data is echoed but nothing in the database is something wrong with it? and is it sql injection safe? TIA!
by nadiam in Web Development ()
Member Avatar
program fetching text file contents into array, and storing array variable values into example.csv file. The values are not storing column wise. ----------------- text file content ---------------------- PHP CODE
by blueguy777 in Web Development ()
Member Avatar
Hi, Need help on exporting data to csv from oracle database when i export ... the field which has null values (in database) appear as 'null' word in the csv output. Is there a way to avoid it? thanks
by dippy78 in Software Development ()
Member Avatar
I have a python code that reads a specific folder for specific files. Once it finds a file that matches the re.split peramiters that it is given it then writes the data to a csv file. The issue is that for every file that it loops through and writes it …
by abaddon2031 in Software Development ()
Member Avatar
Just looking for a push in the right direction. I am overwhelmed by the choice with python at the moment. What are the best tools for managing consitent ETL operations with data in XML and CSV formats to database, graphs and in future a web app. for example should I …
by flebber 12 in Software Development ()
Member Avatar
Controller: $data['error'] = ''; //initialize image upload error array to empty $config['upload_path'] = './uploads/'; $config['allowed_types'] = 'csv'; $config['max_size'] = '10000'; $this->load->library('upload', $config); // If upload failed, display error if (!$this->upload->do_upload()) { $data['error'] = $this->upload->display_errors(); $data['mainpage']='category'; $data['mode']='addcsv'; $this->load->view('includes/mainpage',$data); //Category Id Category Name Sub-category Id Sub-category Name } else { $file_data = …
by ashalatha in Web Development ()
Member Avatar
Hello, The code below works almost perfectly except for two flaws: It provides the full name of the file (workbook.xls) instead of just "workbook" If there is more than 1 worksheet then the loop appends the previous worksheet to the filename. For example, Workbook1 has 1 worksheet Workbook2 has 2 …
by Tensigh 5 in Software Development ()
Member Avatar
//exporting to csv file. // this is my code. This is working very well because it is exporting a single table to a csv file. My problem is, i want it to export from multiple tables to a single csv file. Please, how do i do it? Thanks in advance.
by kingwash in Web Development ()
Member Avatar
Is there ay inbuilt method to convert 2D array into CSV file? e.g. Can anyone give me a hint to convert [1,2;3,4] into a file output.csv?
by abra_ka_dabra in Software Development ()
Member Avatar
I have a python script that reads a csv file and converts it to two new files so that my database can add new emails or update existing ones. What im trying to do now is after it has converted them for it to send me a email with how …
by abaddon2031 in Software Development ()
Member Avatar
hey guys so ive been asked to add an import csv function to my contacts page. i found this coding on the net and just want some clarification. checks if the first "column" of a csv file exists? stumbled on a site that said isnt good but did not elaborat. …
by nadiam in Web Development ()
Member Avatar
Hiya, I want a simple register, but really struggling with the code. I am simply not a coder, although I can process some. Here's one example: Simple at the moment (my code, NOT the solution!). I realise I will almost certainly need some code in the header, and potentially change …
by APHutchins in Web Development ()
Member Avatar
I have a very large csv file that had different values for certian fields and im wanting to split it up so that each of the different values gets put into its own csv file for example all of the fields whos value is 1110 would get read and written …
by abaddon2031 in Software Development ()
Member Avatar
I have a python code that reads several csv files and writes teh data to a single file but every time it loops back around to the next file it prints the headers again. Is there a way to stop this I can post my code if it is nessisary.
by abaddon2031 in Software Development ()
Member Avatar
I am trying to order by date DESC some events read from a CSV and print out them. The CSV file has to be read until it reaches the end and then order by date DESC only the entries in the following categories: champions and euro. This is the code …
by Thevenin in Web Development ()
Member Avatar
I have some code that I edited for importing csv into mysql using PDO to bind parameters. I thought it was working before, but tested it again and the issue I have is that only one line (the fourth line) of the csv file is getting imported. The first line …
by joshmac in Web Development ()
Member Avatar
Hi guys, I have the following code that I just cannot get to work! Can you please let me know where I have gone wrong?
by CarterLangley in Web Development ()
Member Avatar
I'm wondering if anyone has any experiencing getting a python application to authenticate with google docs. I'm not sure how to begin. Goal: To update a google docs spreadsheet based of a CSV file on my local machine. Currently my google account is set for two factor authentication. Perhaps this …
by karmstrong in Software Development ()