Where should I start | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Where should I start

ok, so some software I use for my work presents data in a nice spreadsheet, but the reports it exports to my clients is in some awful way to long html file. I can save it as a csv. so what I'm wondering is if someone could nudge me in the right direction (I don't want it written for me) so I can use a python script to automatically edit the csv, and export it to a spreadsheet format so my clients have an easy to read report.

25th May 2017, 2:46 PM
Kyle Farris
Kyle Farris - avatar
13 Answers
+ 2
please see this simple python code ,it may help you think a way about writing reading and using csv format https://code.sololearn.com/cbM891WJbXEC/?ref=app
25th May 2017, 6:47 PM
Melih Melik Sonmez
Melih Melik Sonmez - avatar
+ 1
in which platform your app works ? if windows ı suggest c# ... So you can use office's libraries and also datasets / ole and many things will help your users
25th May 2017, 2:50 PM
Melih Melik Sonmez
Melih Melik Sonmez - avatar
+ 1
I suggest Csharp
25th May 2017, 2:58 PM
Melih Melik Sonmez
Melih Melik Sonmez - avatar
+ 1
thanks! I'll look into it, this is going to be my first usable project so I'm excited to get started
25th May 2017, 4:33 PM
Kyle Farris
Kyle Farris - avatar
+ 1
it's a great feeling when it works. My first usable Python project was a script to sort 5,000+ Rom files down the the 1600 or so I wanted. a little work and it couldn't have went better. after that my emulator needed .bin extension on my files, but they had .gen.. Slight alternation of my script and I had 1600 files with the proper extension. Running your own script to handle your own business is an empowering feeling.
25th May 2017, 4:41 PM
LordHill
LordHill - avatar
0
oh also important, the csv that it outputs is really stupid so just opening in calc doesn't work, all the data gets mixed up
25th May 2017, 2:48 PM
Kyle Farris
Kyle Farris - avatar
0
it is windows, I was just hoping to use the language I'm already learning instead of having to learn another one at the same time, I want to master one before moving on, just to avoid confusion for myself
25th May 2017, 2:55 PM
Kyle Farris
Kyle Farris - avatar
0
Python can handle this, it is very good at these type of things. basically what your saying is you have something like name,job,other,random,info and you want to be able to change a single piece?
25th May 2017, 3:54 PM
LordHill
LordHill - avatar
0
to be specific I'm an SEO guy, and I need to take a CSV comprised of his keywords, his pages and and all of his competitions rank for the same keywords and put it into a readable spreadsheet
25th May 2017, 4:21 PM
Kyle Farris
Kyle Farris - avatar
0
This might be just what you need. https://dzone.com/articles/JUMP_LINK__&&__python__&&__JUMP_LINK-101-reading-and-writing This is all about reading and writing csv files
25th May 2017, 4:25 PM
LordHill
LordHill - avatar
0
so I guess really it would need to create a new row every x number of items, maintaining separate cells for each item
25th May 2017, 4:27 PM
Kyle Farris
Kyle Farris - avatar
0
Combine it with this and you will be in business https://docs.python.org/2/library/csv.html
25th May 2017, 4:27 PM
LordHill
LordHill - avatar
0
You don't have to create a new row. You can have a giant row if you want, but it is easier to read a new line from a file. If you leave it a single line you would need a special char to use a split() function. It would turn it into a list of lists basically
25th May 2017, 4:31 PM
LordHill
LordHill - avatar