[Tutor] re code

ThreeBlindQuarks threesomequarks at proton.me
Sat Sep 30 14:26:33 EDT 2023


The request is a tad general and depending on what is required certainly sounds very doable as long as all that is needed is a CSV file properly formatted and some internal logic

The request for someone nearby, as noted, may make more sense if you want someone to teach you in person or if the data is local and cannot be shared.

But setting up someone to be paid or to volunteer to travel with you is arguably not an important aspect of this group. Some may be willing but others will more likely chime in fir more specific questions like.

How do I read in a CSV into an appropriate data structure? As noted, some may suggest the pandas module.

How do I discard most of the resulting columns?

How do I make sure my columns are of the data type I need?

How do I clean the data in various ways?

How do I efficiently select subsets of the data, do columnist calculations, make graphs and save results and so on?

As you already have a program in another language, then someone familiar with it could emulate ir or even improve on it, unless you also want new features.

Your issue is not uncommon as so many older programs are kept around even as the underlying environment falls out of favor. So I suggest you aim for a recent version of Python, not version 2.

Sent from Proton Mail mobile

-------- Original Message --------
On Sep 30, 2023, 8:17 AM, Alan Gauld via Tutor wrote:

> On 30/09/2023 02:50, Verizon!! via Tutor wrote: > I have a program coded in visual basic 6.0 and want to code it in python. That's fine, although for best results be open to new ways of thinking about the code, don;t try to "translate" the VB to Python. The idioms are very different. > Florida and hoping that a python guru is close by. This is the internet, the whole world is close-by. The tutor list works by you asking questions (or posting code for critique) and the list members responding with answers/comments. > The program takes a comma delimited data file with 1400+ fields That's a lot of fields, however the Python csv module can cope. > pulls out specific fields applies some calcs and formulas and outputs a report And if the calculations get complex you might also want to look at SciPy with Pandas(which can also read csv files and do data crunching and reports etc) -- Alan G Author of the Learn to Program web site http://www.alan-g.me.uk/ http://www.amazon.com/author/alan_gauld Follow my photo-blog on Flickr at: http://www.flickr.com/photos/alangauldphotos _______________________________________________ Tutor maillist - Tutor at python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor


More information about the Tutor mailing list