woensdag 23 november 2016

How to combine two sets of data.

How to combine two sets of data?

There are two lists:
A (a1, a2, a3, a4, a5 etc.)
B (b1, b2, b3, b4, b5 etc.)

In this case, it was text that was to be combined, so I made use of Excel:
C1 = a1&b1
Then drag the corner of the rectangle down and I got the combination that I wanted.

Supposedly, it can be done differently:
>>> a = ['a1', 'a2', 'a3', 'a4', 'a5']<br>
>>> b = ['b1', 'b2', 'b3', 'b4', 'b5']<br>
>>> [elem for pair in zip(a, b) for elem in pair]<br>
['a1', 'b1', 'a2', 'b2', 'a3', 'b3', 'a4', 'b4', 'a5', 'b5']<br>

Enlarging Libreoffice window completely with command

 You can open the LibreOffice window completely by pressing the CTRL+Shift+J keys together.