example Datafrmae:
col1 = {"a" : [1, np.nan, np.nan, np.nan, 2, 3, 4 , np.nan, np.nan, np.nan, np.nan, np.nan, np.nan,]}
df = pd.DataFrame(data=col1)
- to find the largest group of consecutive NaN values from the dataframe.
- To return the first and last index from the group
in this example the output would be: (7, 12)