Terry Reedy wrote:
> On 4/14/2011 12:55 PM, Peter Otten wrote:
>
>> I don't expect that it matters much, but you don't need to sort your data
>> if you use a dictionary anyway:
>
> Which means that one can build the dict line by line, as each is read,
> instead of reading the entire file into me
On Friday 15 April 2011 02:13:51 christian wrote:
> Hello,
>
> i'm not very experienced in python. Is there a way doing
> below more memory efficient and maybe faster.
> I import a 2-column file and then concat for every unique
> value in the first column ( key) the value from the second
> colum
On 4/14/2011 12:55 PM, Peter Otten wrote:
I don't expect that it matters much, but you don't need to sort your data if
you use a dictionary anyway:
Which means that one can build the dict line by line, as each is read,
instead of reading the entire file into memory. So it does matter for
int
christian wrote:
> Hello,
>
> i'm not very experienced in python. Is there a way doing below more
> memory efficient and maybe faster.
> I import a 2-column file and then concat for every unique value in
> the first column ( key) the value from the second
> columns.
>
> So The ouptut is someth