Last active
June 28, 2020 17:56
-
-
Save aniruddha27/d9b5224764dd19daa6cf49dc8eea161b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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