These are chat archives for data-8/datascience

1st
Dec 2015
tap2k
@tap2k
Dec 01 2015 18:12
Do I need to do anything special to show a Marker once Ive called the function?
for maps
tap2k
@tap2k
Dec 01 2015 18:18
basically the functionality Im looking for is to add circles one by one and then show the resulting map. possible?
tap2k
@tap2k
Dec 01 2015 18:27
also - is there a way to change the datatype of a column? I need the lat, long values to be treated as floats for Circle.map to work
Sam Lau
@SamLau95
Dec 01 2015 20:35

@tap2k i believe they’ll show up automatically — checkout david wagner’s lecture on privacy: http://data8.org/text/slides/lec10.pdf

i think what you want has been done before

if you have a table called foo_table and a column called x with integers, you can change the type to floats with Table.apply like:

foo_table.apply(float, 'x')
tap2k
@tap2k
Dec 01 2015 20:59
thanks! helpful
tap2k
@tap2k
Dec 01 2015 21:12
when I use the Circle.map or Marker.map functions how do I set the map center and zoom?
Sam Lau
@SamLau95
Dec 01 2015 21:12
not super sure myself — @papajohn @alvinwan , do you know how?
tap2k
@tap2k
Dec 01 2015 22:00
figured that out
one issue I had is that Circle or Marker.map is not the last expression in the cell the map doesnt show. this makes it hard to wrap in a function unless someone has a workaround