Created
June 8, 2020 09:13
-
-
Save aniruddha27/7d47c6de0a21225061e91d87ff007394 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
# selecting non-empty output rows | |
df_show = pd.DataFrame(columns=df_rule1_all.columns) | |
for row in range(len(df_rule1_all)): | |
if len(df_rule1_all.loc[row,'Output'])!=0: | |
df_show = df_show.append(df_rule1_all.loc[row,:]) | |
# reset the index | |
df_show.reset_index(inplace=True) | |
df_show.drop('index',axis=1,inplace=True) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment