diff --git a/src/talks/2024-04-12-UIC-script.txt b/src/talks/2024-04-12-UIC-script.txt new file mode 100644 index 00000000..8244de11 --- /dev/null +++ b/src/talks/2024-04-12-UIC-script.txt @@ -0,0 +1,45 @@ +Open farmersmarket_2024-42231059.xlsx + +Geotag: Lon - Y; Lat - X + +Geoplot + - 1. too much data + - 2. oops, flipped + +Alter geotag. See geoplot rerun + +Still too much data. Have a .shp file, but vizier doesn't support an adaptor. Python: +------------------- +# Extract County Shapes +import shapefile + +with shapefile.Reader("cb_2018_us_county_500k.zip") as sf: + #for field in sf.fields: + # print(field) + # Get object containing an empty dataset. + ds = vizierdb.new_dataset() + ds.insert_column("county") + ds.insert_column("zip") + ds.insert_column("geometry", "geometry") + for entry in sf.shapeRecords(): + if entry.record[0] == '36': # 36 is NYS + row = [ entry.record[5], entry.record[4], entry.shape ] + #print(row) + ds.insert_row( row ) + ds.save("nys_counties") + ds.show() +------------------- + +Spatial join +------------------- +SELECT * +FROM nys_counties nys + JOIN wny_counties wny ON nys.county = wny.county +------------------- + +Add below, and name: usda_farmers_markets +------------------- + JOIN usda_farmers_markets f ON ST_CONTAINS(nys.geometry, f.geometry) +------------------- + +Watch updated chart \ No newline at end of file diff --git a/src/talks/2024-04-12-UIC.erb b/src/talks/2024-04-12-UIC.erb index 64897c03..e0476a91 100644 --- a/src/talks/2024-04-12-UIC.erb +++ b/src/talks/2024-04-12-UIC.erb @@ -304,7 +304,7 @@ end nbcell("if z:\n y = x + 2", idx: 2) end %> - +
If z == False:
Reads: $\{\;\textbf{z}\;\}$
Writes: $\{\;\;\}$
@@ -423,7 +423,6 @@ endWe need to be able to recover the kernel to any state.
-🤷
-🤷
+🤷
+... but this requires migrating state.
+... but this requires migrating state... across languages.
Python's native serialization support.
+ +Standard data interchange format.
+ +Specialized formats for specific datatypes.
+Vizier-level Typing.
Datasets, Functions/Classes, etc...
+An abstraction that...
+Vizier's artifact store provides a thin wrapper around standards compliant libraries (e.g., Apache Spark).
... but it's a lot of special case code.
+(future work)
+ +Questions?
+https://vizierdb.info
-Mike Brachmann, Boris Glavic, Nachiket Deo, Juliana Freire, Heiko Mueller, Sonia Castello, Munaf Arshad Qazi, William Spoth, Poonam Kumari, Soham Patel, and more...
+Mike Brachmann, Boris Glavic, Nachiket Deo, Juliana Freire, Heiko Mueller, Sonia Castello, Munaf Arshad Qazi, William Spoth, Poonam Kumari, Nicholas Brown, Soham Patel, Thomas Slowe, and more...
+ + +