python - Calling in functions in another function -
I have created a function to read in the CSV file and then writes some data from the CSV file in another file. Before writing, I had to manipulate some data from the original CSV file. Perhaps in the next two months, it would be very important to manipulate this, so I wrote another celebration to do that manipulation, but I have trouble having a call at my second ceremony.
This is the function I am trying to call:
import sys, math def convLatLon (measurement) should be imported into #: # # ### 'format tpoint = float (measurement) point_deg = math.floor = get degree for # decimal and lolan point = tpoint-point_deg # #subtract To get latitude from decimal only to decimal = dpoint * 60 # Feels degree min npoint = str (point_deg) + str (pointmin) print (npoint)
How do I call this function in any other function? They are currently in the same directory. I am used for Matlab and I think this would be a simple call in the command, but I can not find it. Any help would be very important. You can import the file (as you have imported
and math
). If your function is in a file called unused
: is used in the use.convLatLon (37.76)
file other directory The directory should be in your PYTHONPATH.
Comments
Post a Comment