Python Forum
Formula works for one row does not for two
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Formula works for one row does not for two
#5
(Aug-25-2019, 08:57 PM)Prometheus Wrote: So, in essence, numpy does not like making the calculation of radians part of the equasion when there are more rows than 1.

No, the problem were all these float(df6['Latitude']) etc
to change the data type a column (series) in a dataframe you need to call the appropriate pandas methods to do so.
You can put the np.radians() back into the calculation and it will work also.
Reply


Messages In This Thread
RE: Formula works for one row does not for two - by ThomasL - Aug-26-2019, 05:19 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020