Skip to content

csvToJson method is not working #93

Description

@YJDave

When I try to call csvToJson method, it throws following error.

Traceback (most recent call last):
  File "lokak.py", line 16, in <module>
    print(l.csvToJson(csvData))
  File "/home/venv-loklak-2/local/lib/python2.7/site-packages/loklak.py", line 73, in csvToJson
    return out
NameError: global name 'out' is not defined

My script looks like this,

csvData = '"abc","xyz","dsf","sdfkl",12.1'
print(l.csvToJson(csvData))

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions