Skip to content

Instantly share code, notes, and snippets.

@joseberlines
Last active February 21, 2021 23:42
Show Gist options
  • Save joseberlines/651c8116e30e1eb5eacdf8b8a5002345 to your computer and use it in GitHub Desktop.
Save joseberlines/651c8116e30e1eb5eacdf8b8a5002345 to your computer and use it in GitHub Desktop.
stations_df.drop('shape', axis =1, inplace = True)
stations_df['width'] = stations_df['score'] * 40 + 40
stations_df['height'] = stations_df['score'] * 40 + 40
stations_df
G=transform_into_ipycytoscape(stations_df,rails_df)
display(G)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment