We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed75ced commit dd769d9Copy full SHA for dd769d9
src/magicformulabr/main.py
@@ -362,6 +362,9 @@ def display_results(df, args):
362
else:
363
keep_cols = df_display.columns.tolist()
364
365
+ # Remove duplicates preserving order
366
+ keep_cols = list(dict.fromkeys(keep_cols))
367
+
368
df_display.reset_index(inplace=True, names="Ticker")
369
df_display.index = df_display.index + 1
370
print(df_display.head(args.top).to_string(columns=["Ticker"] + keep_cols))
0 commit comments