Update a specific element in all a list of N lists

2021-12-16 Thread hanan lamaazi
Dear All, I really need your assistance, I have a dataset with 1005000 rows and 25 columns, The main column that I repeatedly use are Time, ID, and Reputation First I sliced the data based on the time, and I append the sliced data in a list called "df_list". So I get 201 lists with 25 columns

Re: ast.parse, ast.dump, but with comment preservation?

2021-12-16 Thread lucas
Hi ! Maybe RedBaron may help you ? https://github.com/PyCQA/redbaron IIRC, it aims to conserve the exact same representation of the source code, including comments and empty lines. --lucas On 16/12/2021 04:37, samue...@gmail.com wrote: I wrote a little open-source tool to expose internal

Re: ast.parse, ast.dump, but with comment preservation?

2021-12-16 Thread Barry
> On 16 Dec 2021, at 03:49, samue...@gmail.com wrote: > > I wrote a little open-source tool to expose internal constructs in OpenAPI. > Along the way, I added related functionality to: > - Generate/update a function prototype to/from a class > - JSON schema > - Automatically add type annotati