Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
An example of what a row of WiFi data might look like before and after building dwell times.

Row of data before:

(
	# Key: (device_id, date)
	(
		u'10:a5:d0:f9:67:2e',
		u'2014-08-28'
	),
	# Value: (location, signal_strength, start_time, end_time, ping_count)
	[
		(19, 11, 44195, 44195, 1),
		(19, 15, 44319, 44319, 1),
		(19, 14, 44491, 44491, 1),
		(4, 8,   44551, 44551, 1),
		(4, 37,  58695, 58695, 1),
		(4, 37,  58755, 58755, 1),
		(4, 39,  58875, 58875, 1),
		(6, 15,  59225, 59225, 1),
		(6, 8,   61025, 61025, 1)
	]
)

Row of data after:

(
	# Key: (device_id, date)
	(
		u'10:a5:d0:f9:67:2e',
		u'2014-08-28'
	),
	# Value: (location, signal_strength, start_time, end_time, ping_count)
	[
		(19, 14, 44195, 44491, 3),
		(4,  39, 58695, 58875, 3),
		(6,  15, 59225, 59225, 1),
		(6,  8,  61025, 61025, 1)
	]
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment