General Strategy: Data/Array Analysis in Python -
this strategy question.
i completed task in vba , sql, not know how execute in python because i'm learning, , interested in general approach in python.
i have 3 tables/matrices/arrays.
names , ids:
name nid amy 1 becky 2 cathy 3 dana 4
objects associated names , date:
oid names date 1a amy, cathy 3/1/2012 2x dana 3/1/2011 4s amy, becky 3/1/2010
date ranges associated nids:
nid start end 3 1/1/2012 1/1/2013
the question want answer is: every nid in last matrix, oids relevant (i.e. name appears in object , date falls within date range given name in final matrix)?
it's broad question, ecstatic execute kind of task in python if possible. please note few 1 , many 1,000 distinct names can assiacted oid.
why wouldn't keep data in sql database? sql suited handling kind of operations want perform , seems you're familiar it. doing has added advantage of portability, can switch between vba , python without having port ton of code over.
for mysql recommend looking mysqldb
module. can take @ official documentation here, , suggest looking @ this more user-friendly tutorial.
if want fast prototyping without having setup mysql server can use sqlite instead. in case take @ documentation sqlite3
module.
Comments
Post a Comment