[PyDelhi] how to run for loop in xlsv file
Arshpreet Singh
arsh840 at gmail.com
Wed Dec 2 06:46:46 EST 2015
On Wed, Dec 2, 2015 at 6:13 AM, Shreya Agarwal <shreya2105 at gmail.com> wrote:
> This is my code:
>
> data = get_data("/Users/shreyaagarwal/Desktop/Airport and zipcodes.xlsx")
> import json print(json.dumps(data))
>
> for element in row:
>
> g= geocoder.google(element)
>
> print (g.postal)
Rather than dumping data into json and doing further processing you
can direct use other options:
https://pypi.python.org/pypi/xlrd
https://pypi.python.org/pypi/pyexcel-xls
Yes question seems weird. ;)
--
Thanks
Arshpreet Singh
I am Sikh boy, Learning by doing and Learning by teaching is my religion.
------------------------------------------------------------------------------
Slashdot TV.
Video for Nerds. Stuff that matters.
http://tv.slashdot.org/
More information about the Ncr-Python.in
mailing list