Welcome Guest.

1Answers

How to change the numbers in the file

Asked by: Rachel Thompson 36 views IT September 29, 2022

You need to replace "LAT1" and "LNG1" in Names to "LAT3", "LNG3" LAT3 = 87.33461

LNG3 = 43.437402

PATH3 = 'C: \\USERS \\ 86173 \\ desktop \\ City Range Coordinates .txt '

CityEdge = ***. Read_csv (PATH3,

Names = [' City ',' LAT1 ', 'lng1', 'lat2', 'lng2'],

ENCODING = 'UTF-8')

1 Answers

  1. +5Votes  

    This is a CSV file read back by pandas. Do you want to change the value of all LAT1/LNG1 to LAT3/LNG3?

    As long as

    cityedge [‘lat1’] = lat3

    cityedge [‘lng1’] = lng3

    Just return to Text

    Davies- September 29, 2022 |