Extend column matching

Extend ports column removal matching to handle upcase

Change-Id: I41a66420477b6bc1c32a714912e5e6485c0afa9a
Signed-off-by: Ron Stone <ronald.stone@windriver.com>
This commit is contained in:
Ron Stone 2024-10-18 15:57:28 +00:00
parent 8ba09ff4d7
commit 985c560f45

View File

@ -24,7 +24,7 @@ def export_to_csv(input_file, output_file, columns, filters, sort_orders):
df = df.sort_values(by=sort_columns, ascending=sort_ascending) df = df.sort_values(by=sort_columns, ascending=sort_ascending)
# Drop filter-only columns that begin with an underscore # Drop filter-only columns that begin with an underscore
pattern = re.compile("^_[a-z]+$") pattern = re.compile("^_[a-zA-Z]+$")
for c in columns: for c in columns:
if pattern.match(c): if pattern.match(c):
df.pop(c) df.pop(c)