utm package error - need your help - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: Data Science (https://python-forum.io/forum-44.html) +--- Thread: utm package error - need your help (/thread-4276.html) |
utm package error - need your help - Tyagi_j - Aug-04-2017 Hi , i have started working on python - pandas since from a month, especially on geo-location/Geo spatial analysis. i'm using the package : utm to know the latitudes and longitudes from xbin and ybin jupyter notebook: import utm as ut df = sqlContext.sql("sel xbin,ybin from table1 ").topandas() df xbin ybin 0 589150 5584550 1 621650 5593050 2 604300 5586800 3 601400 5590300 4 598550 5542950 ut.to_latlon(df["xbin"].all(),df["ybin"].all(), 31, 'N')this function showing errors when i use the function manually for the same xbin and ybin, its working fine and i have the desired values :lat =ut.to_latlon(589150,5584550,31, 'N') lat (51.373289530506355, 4.4963369548355825) my code is wrong while using the function ?, can you please help me RE: utm package error - need your help - buran - Aug-04-2017 what do you expect that DataFrame.all() does? https://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.all.html RE: utm package error - need your help - Tyagi_j - Aug-04-2017 the previous error : even i tried to convert the values to float
|