Re: Writing a string with comma in one column of CSV file

2022-01-16 Thread Greg Ewing
On 17/01/22 4:18 am, Mats Wichmann wrote: the convention for Excel, which is usually the reason people are using csv, is you can enclose the entire comma-containing field in "quote marks" (afaik it must be double-quote). And to include a double quote in a field, quote the field and double the d

Re: What to write or search on github to get the code for what is written below:

2022-01-16 Thread Dennis Lee Bieber
On Sat, 15 Jan 2022 02:38:34 -0800 (PST), NArshad declaimed the following: A bit of an improvement -- actual code... But... still not a minimal /runnable/ example... > >Why does the code written below is not giving any output? > >xls = ExcelFile('ABC.xlsx') Where is

Re: What to write or search on github to get the code for what is written below:

2022-01-16 Thread Mats Wichmann
On 1/15/22 14:24, Avi Gross via Python-list wrote: > Mats, > Yes, this is a Python mailing list and I welcome people interested in doing > something in Python who need a little help or advice but have some idea of > what they are doing and present us with enough info more than "something does >

Re: Writing a string with comma in one column of CSV file

2022-01-16 Thread Mats Wichmann
On 1/15/22 13:56, Mahmood Naderan via Python-list wrote: > Hi, > I use the following line to write some information to a CSV file which is > comma delimited. > > f = open(output_file, 'w', newline='') > wr = csv.writer(f) > ... > f.write(str(n) + "," + str(key) + "\n" ) > > > Problem is that ke

Re: Why operations between dict views return a set and not a frozenset?

2022-01-16 Thread Marco Sulla
Thank you a lot for letting me understand :) On Tue, 11 Jan 2022 at 22:09, Peter J. Holzer wrote: > On 2022-01-11 19:49:20 +0100, Marco Sulla wrote: > > I think this is what you mean: > > > > >>> dis.dis("for _ in {1, 2}: pass") > > 1 0 SETUP_LOOP 12 (to 14) > >

Doc or example about conda custom build?

2022-01-16 Thread Marco Sulla
Sorry for being maybe a little OT. I tried to get help from other Conda users, from chat and from the mailing list without success. I would add a custom build on my conda package. Is there somewhere a doc or an example about it? (Specifically, I want to pass a custom parameter to the setup.py tha