mirror of
https://github.com/edcommonwealth/merge-csv.git
synced 2026-03-07 21:48:13 -08:00
Bug Fix: Works for double digit question numbers
This commit is contained in:
parent
2ea21c767f
commit
ecb7903851
1 changed files with 1 additions and 1 deletions
|
|
@ -124,7 +124,7 @@ def repair_student_rows(df):
|
||||||
def combine_variants(df):
|
def combine_variants(df):
|
||||||
drops = []
|
drops = []
|
||||||
for col in df:
|
for col in df:
|
||||||
x = re.search(r's-[a-z]{4}-q[0-9]-1', col)
|
x = re.search(r's-[a-z]{4}-q[0-9][0-9]?-1', col)
|
||||||
if x is not None:
|
if x is not None:
|
||||||
# get non variant version
|
# get non variant version
|
||||||
nonvar = col[:-2]
|
nonvar = col[:-2]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue