Skip to content

Instantly share code, notes, and snippets.

@aniruddha27
Last active June 28, 2020 17:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aniruddha27/d9b5224764dd19daa6cf49dc8eea161b to your computer and use it in GitHub Desktop.
Save aniruddha27/d9b5224764dd19daa6cf49dc8eea161b to your computer and use it in GitHub Desktop.
# 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