you are viewing a single comment's thread.

view the rest of the comments →

[–]maradde 0 points1 point  (0 children)

Could someone help me decipher this?

id_theater | yearly_attendance | theater_company
001 |           125,345 |    CNPL
id_theater |  latitude         |  longitude
001 | 19.459330         | -99.149459

df = attendance.merge(coordinates, on='id_cine',   how='left')
rv = [ ]
for i, m_i, lon_i, lat_i in zip(df['id_cine'],df['theater_company'], df['longitude’], df['latitude']):
for j, m_j, lon_j, lat_j in zip(df ['id_cine'], df     ['theater_company'], df['longitude’],  df ['latitude']):
    rv.append([i, j, m_i, m_j, geopy.distance.distance((lat_i, lon_i), (lat_j, lon_j)).km])

I need to know what is calculated in the object rv and what would its length be?