dssg / dssg/eights

deal with missing trailing zeros

Open
#56 2 comments 0 reactions 0 assignees View on GitHub
wontfix
Dominant language
Python
Stars
14
Forks
2
PR merge metrics
No merged PRs in 30d

Description

Some of these db's do csv dumps that miss the final empty entries. it seems to be only the trailing values.

fast cheap solution is: do we propose a better one?

def append_trailing_comas(L_L, target=None):
if target==None:
target = len(L_L[0])
for x in range(len(L_L)):
if len(L_L[x]) != target:
r = target-len(L_L[x])
for y in range(r):
L_L[x].append('')
return L_L

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.