All Questions
84 questions
4
votes
1
answer
168
views
CSV TimeSheet Calculator
This program takes in a CSV timesheet for my current job, groups the hours worked by employee then outputs it to a txt file. I used a simple GUI with tkinter and ...
3
votes
3
answers
134
views
Increase time efficiency when writing arrays to CSV file
I have the following code to amend two rows of "test_base.csv" with the entries of the arrays "a_temp" and "b_temp," saving the result into "result.csv." .csv ...
8
votes
5
answers
839
views
adding data to a CSV file for it to be read
I'm making a program that lets you enter a name and house that adds it to the CSV file for it to be read and print out "Tre is in house Dragon", etc. The code works; I'm just wondering if ...
3
votes
1
answer
163
views
My first rust program: transposing a CSV
Here's the result:
...
2
votes
1
answer
1k
views
Simple lightweight CSV reader in C++
My coding background is mostly from C and I've noticed that I tend to "use C++ as it was C" quite a lot. So this is a very small project I've written to improve my understanding of best ...
3
votes
1
answer
270
views
Reducing the amount of duplicated code (python) - cricket matches [closed]
I'm a beginner and self taught and just want to see if there are neater ways of doing what I am doing, or whether there are bits of code that are poorly written. I think Lines 100-204 are the most ...
4
votes
1
answer
1k
views
Basic CSV Parser in C++
This was written down solely as a mean to practice basic C++ and isn't meant to serve any production purposes. Clearly, the implementation can't handle all input formats: it always expects the CSV to ...
1
vote
1
answer
155
views
convert .sav SPSS files into long or flat format CSVs
I'm a long standing PHP, JS, C#(Unity) dev looking to get outside objects and lower down. I've written a quick program to read binary data from a .sav file, and output the data section into CSV's in ...
2
votes
1
answer
2k
views
Java CSV to XML converter
I'm relatively new to programming and I was trying to work a project.
I would like recommendations of how to annotate or comment my project and any improvement I could make to it, any suggestion is ...
4
votes
1
answer
746
views
Create a CSV from SQL Data and email as attachment using PHP
I put together some functions that allows a PHP script to send the SQL data obtained from user inputs on a website via an email attachment as a CSV file. It works perfectly and I have no issues with ...
-2
votes
1
answer
118
views
what is the best practice concerning opening CSV files in python [closed]
I am looking for the best way to save regular data from a series of sensors to a CSV file.
the program will be reading every sensor once a minute 24/7 and needs to report the results to a CSV file ...
4
votes
1
answer
286
views
Reorder the Columns in a CSV File in Descending Order
I wrote a script to reorder the columns in a CSV file in descending order and then write to another CSV file. My script needs to be able to handle several tens of millions of records, and I would like ...
7
votes
2
answers
333
views
Rust CSV Sorter Code Lookover
I am new to Rust, began learning a few days ago. I have written a simple csv_sorter based off of one I had written for a class previously. Everything runs fine and I have gotten my expected results. I ...
6
votes
1
answer
1k
views
Rust code that reads two columns of data from .txt file
I'm writing a code to read data from text file in Rust. The target files have two columns and non-fixed length rows, for example,
example.txt
1 1
2 4
3 9
4 16
...
9
votes
2
answers
10k
views
Read/write a pipe-delimited file line by line with some simple text manipulation
This code that I wrote is supposed to read/write a pipe-delimited file line by line to a new file with some simple text manipulation. (It also adds two new columns) and publishes a "Status Update" ...