Skip to content

Instantly share code, notes, and snippets.

@aniruddha27
Last active Jun 28, 2020
Embed
What would you like to do?
# select non-empty outputs
df_show3 = pd.DataFrame(columns=df_rule3_all.columns)
for row in range(len(df_rule3_all)):
if len(df_rule3_all.loc[row,'Output'])!=0:
df_show3 = df_show3.append(df_rule3_all.loc[row,:])
# reset the index
df_show3.reset_index(inplace=True)
df_show3.drop('index',axis=1,inplace=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment