Unexpected behaviour Python recipe

SanderdeQueleri Dataiku DSS Core Designer, Dataiku DSS ML Practitioner, Registered Posts: 2 ✭✭✭
Weird Python behavior:
When running a large script and printing the values just before assigning the dataframe to one of the output files i ran into this weird behavior that's returning a completely unexpected output. Here is the code i'm running, the printed output of transaction_type column and then the actual dataset that is missing the value.
  1. Code for output_df that is used as input for the leading_forecast dataiku output dataset
MicrosoftTeams-image (4).png

MicrosoftTeams-image (5).png

 2. Print statement of the output_df, as you can see it contains V and C
MicrosoftTeams-image (6).png
3. Output dataframe in Dataiku:
MicrosoftTeams-image (3).png
As you can see it only contains C, and i would expect here to see atleast the V from the printstatement and a B from elsewhere in the code. How can this dataset be different from the print statement as it is literally taken from there...
Can someone please inform me why this is happening
Operating system used: Windows 10


Setup Info
      Help me…