Skip to content
Snippets Groups Projects

Update pandas

Closed Raghunandan Netrapalli Madhusudhan requested to merge update-pandas into develop
4 files
+ 6
6
Compare changes
  • Side-by-side
  • Inline
Files
4
@@ -14,7 +14,7 @@ import re
@@ -14,7 +14,7 @@ import re
def normalize_column(column, event):
def normalize_column(column, event):
# already prefixed
# already prefixed
normalized_column = f'{event}_' + re.sub(f'^({event}_?)', '', column)
normalized_column = f'{event}_' + column
# special chars
# special chars
normalized_column = re.sub(r'[^a-zA-Z1-9_]', '_', normalized_column)
normalized_column = re.sub(r'[^a-zA-Z1-9_]', '_', normalized_column)
# duplicate _
# duplicate _
Loading