There is a data frame (see example). There are gaps in the dataframe series.
How to check for these gaps and test results to write to the new series d?
abcd 0 1 - - нет числа, нет числа 1 3 4 6 2 - 7 4 нет числа 3 6 5 - нет числа I started doing this:
walked through the cycle for each series and collected all the errors found in the list
the list is then translated into a string using join, although it may not need to be done
then applied this function to the data frame using the apply method.
As a result, I expected to receive in each row of the d series a list of omissions of the same row from the a, b and c series, but I get a KeyError error.
What to fix in the function or how else can you write?