Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @dataclass
- class Antenna:
- name: str
- x: float
- y: float
- # records is the csv file and antenna_list is the list of type Antenna
- for index in range(len(records)):
- rec = records.iloc[index]['sector']
- for i in range(len(antenna_list)):
- if rec == antenna_list[i].name:
- lat = antenna_list[i].x
- lon = antenna_list[i].y
- records.at[index, 'x'] = lat
- records.at[index, 'y'] = lon
- break
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement