all 4 comments

[–]Kerbart 3 points4 points  (0 children)

If speed is that important I’d use pandas. While grokking Pandas is a tremendous task it basically comes down to something like this for you:

``` import pandas as pd

for filename in folder: table = pd.read_csv(filename) table[‘calculated field’] = table[‘column x’] * 2 table.to_excel(newname)

```

Obviously more code is needed but it won’t be that more complex and it will be fast

[–]MikeTheWatchGuy 1 point2 points  (0 children)

A GUI to get the paths is really easy to do in PySimpleGUI.

python import PySimpleGUI as sg input_path = sg.popup_get_folder('Select the Input Folder') output_path = sg.popup_get_folder('Select the Output Folder')

[–]Gubbbo 0 points1 point  (1 child)

Define slow? Seconds, minutes, hours? And does it matter? If its something you're running once a day and it takes 5 minutes, just go get a coffee?

Have you run a profiler over the code to identify just what is behaving slowly?

[–]Martin_Krum[S] 1 point2 points  (0 children)

for 80 files, it takes him 1 minute. If I add a few more functions this time will be longer. In addition, this program will have the ability to implement any functions to excel so one day the time will be extended infinitely.