I have imported testdata.csv file onto datascientistworkbench, and i was trying to excute sql statement on this csv file by writing codes on Ipython notebook. I did find the following .py and had it installed into Ipython notebook, but to be honest i dont know what to do next. Here is what I have installed so far:
!pip install querycsv
Based on the description of using this querycsv.py from this link, the next step i should be doing in the normal python environment/software is this:
querycsv.py -i testdata.csv "select distinct IPID from testdata;"
But i guess i cannot just simply copy and paste the above code into IPython notebook. Any advice? Many thanks!
querycsv.pycommand is meant to be run at the command line, not in Python code. You can run command line commands in IPython with the!prefix, but then you don't get structured data to use elsewhere in the code.