I am trying to create a tuple from column values of a Dataframe, which looks like:
        0              1            2
0   5005_P1_080  5005_P1_021         None
1   5005_P2_316  5005_P2_298         None
2   5005_P2_317  5005_P2_318         None
3   5013_P2_159  5013_P2_305  5013_P2_304
4   5013_P2_434  5013_P2_437  5013_P2_439
5   5005_P1_538  5006_P2_054  5005_P1_535I am trying to create a tuple from the 3 columns [0,1,2] for only the column values, but the tuple is looking like this:
(0    5005_P1_080
Name: One, dtype: object, 0    5005_P1_021
Name: Two, dtype: object, 0    None
Name: Three, dtype: object)
whereas it should only be like:
(5005_P1_080, 5005_P1_21, None)
The code I have used is:
B1.columns =['One', 'Two','Three']
Hole1 = B1['One']
Hole2 = B1['Two']
Hole3 = B1['Three']
Hole_Tuple = tuple(Hole1, Hole2, Hole3)
print(Hole_Tuple)
