65010057

Date: 2020-11-25 17:48:46
Score: 4.5
Natty:
Report link

Thank's a lot for your answers, you help me !

I use this code :


result=[]
for i, j in itertools.combinations(df["PORT CODE"], 2):
    if i!=i+1:
    result.append(f'{i}_{j}')
    dff=pd.DataFrame(result)

I need you for the next step :

enter image description here

First column is the Port and the 2nd the service.

I want concatenate i and i+1 if the service is different. In this case, the result is :

enter image description here

Reasons:
  • Blacklisted phrase (1): help me
  • Blacklisted phrase (0.5): I need
  • RegEx Blacklisted phrase (1): I want
  • Probably link only (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Théa Gilles