Skip to content

Instantly share code, notes, and snippets.

@Bjwebb
Last active August 29, 2015 14:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Bjwebb/d41b8efc71e24f5fba16 to your computer and use it in GitHub Desktop.
Save Bjwebb/d41b8efc71e24f5fba16 to your computer and use it in GitHub Desktop.
~/code/opencontracting/flattening-ocds(master)» ./flatten-ocds unflatten in/errors.xlsx -f xlsx -m Sheet1 -o out/error.json
/home/bjwebb/code/opencontracting/flattening-ocds/flattening_ocds/input.py:199: UserWarning: Non-integer value "notanint" found in integer column, returning as string instead.
warn('Non-integer value "{}" found in integer column, returning as string instead.'.format(value))
/home/bjwebb/code/opencontracting/flattening-ocds/flattening_ocds/input.py:193: UserWarning: Non-numeric value "notanumber" found in number column, returning as string instead.
warn('Non-numeric value "{}" found in number column, returning as string instead.'.format(value))
{
"releases": [
{
"ocid": 1,
"a": 1,
"b": 1.2,
"c": "1994-11-05T13:15:30Z"
},
{
"ocid": 1,
"a": "notanint",
"b": "notanumber",
"c": "2015-01-01T00:00:00+00:00"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment