[Tutor] Advice on multi-dimensional data storage
Dear Tutors, I am looking for some advice. I have some data that has three dimensions to it. I would like to store it such that one could manipulate (query/ update/ etc.) by dimension - so it would be feasible to ask for all of the data that shares a value in d1, or iterate over all of the values via d2. I found some answers on StackOverflow which I need to have a longer look at, but I would be grateful for any thoughts. Thanks, Matt ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
[Tutor] Fwd: Citing Python
-- Forwarded message -- From: D.V.N.Sarma డి.వి.ఎన్.శర్మ Date: Wed, Mar 16, 2016 at 3:39 PM Subject: Re: [Tutor] Citing Python To: Steven D'Aprano "Python 2.7.11 |Anaconda 2.5.0 (64-bit)| (default, Jan 29 2016, 14:26:21) [MSC v.1500 64 bit (AMD64)] on win32 Type "copyright", "credits" or "license()" for more information." Is not this we get on IDLE a citation? regards, Sarma. On Wed, Mar 16, 2016 at 8:32 AM, Steven D'Aprano wrote: > On Tue, Mar 15, 2016 at 06:43:44PM +, Alan Gauld wrote: >> On 15/03/16 11:45, Holderness, Ellie wrote: >> >> > How do I cite Python for my dissertation bibliography? >> > I used version 3.5.1. >> >> I'm not sure a citation is strictly necessary for a programming >> language, but if you want to you could cite the Python web site. >> Would you cite JavaScript, CSS or HTML if you built a website? >> Or SQL if you built a database? > > If the dissertation was *about* the database, or website, certainly you > would. > > It is normal to cite the software used to generate results, so that > others can replicate your work. If Ellie's dissertation depends on > Python for her results, or if the dissertation is specifically about > Python, then she will probably need to cite the specific version used. > > One approach is to cite the reference manual for the specific version: > > http://academia.stackexchange.com/questions/5482/how-do-i-reference-the-python-programming-language-in-a-thesis-or-a-paper > > See also Brett Cannon's thesis: > > https://www.researchgate.net/publication/213879590_Localized_Type_Inference_of_Atomic_Types_in_Python > > (Brett is one of the core developers of Python, particularly well known > for his work on the new import system.) > > It's also common to reference Mathematica: > > http://support.wolfram.com/kb/472 > > This paper: > > "Julia: A Fast Dynamic Language for Technical Computing" > http://arxiv.org/abs/1209.5145 > > references PyPy, Octave and R, but strangely not Julia! > > >> If you used a particular tutorial to learn the language >> you could cite that (either as a book or web site). > > I don't think that is appropriate unless you are specifically referring > to the tutorial in the dissertation. > > > > -- > Steve > ___ > Tutor maillist - Tutor@python.org > To unsubscribe or change subscription options: > https://mail.python.org/mailman/listinfo/tutor ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Citing Python
On 16/03/16 03:02, Steven D'Aprano wrote: >> I'm not sure a citation is strictly necessary for a programming >> language, but if you want to you could cite the Python web site. >> Would you cite JavaScript, CSS or HTML if you built a website? >> Or SQL if you built a database? > > If the dissertation was *about* the database, or website, certainly you > would. Ah, yes, that's true. Being an electrical engineer by profession/training I tend to forget that some people do actually write theses *about* computer programs rather than just write programs to support their work. If it were the latter I probably would mention the language (and compiler if relevant) in the text, maybe even provide URLs) but not provide full formal citations. But if I was actually describing the program itself then full citations make sense. -- Alan G Author of the Learn to Program web site http://www.alan-g.me.uk/ http://www.amazon.com/author/alan_gauld Follow my photo-blog on Flickr at: http://www.flickr.com/photos/alangauldphotos ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Advice on multi-dimensional data storage
On 16/03/16 08:36, Matt Williams wrote: > Dear Tutors, > > I am looking for some advice. I have some data that has three dimensions to > it. I would like to store it such that one could manipulate (query/ update/ > etc.) by dimension - so it would be feasible to ask for all of the data > that shares a value in d1, or iterate over all of the values via d2. My personal approach to that tends to be to use a database. If performance is an issue maybe an in-memory SQLIte database. There may be things in NumPy that would help too. Pandas is another possibility. And I suspect R (via Rpy2) can do such tricks too if you know R (otherwise go with Pandas). HTH -- Alan G Author of the Learn to Program web site http://www.alan-g.me.uk/ http://www.amazon.com/author/alan_gauld Follow my photo-blog on Flickr at: http://www.flickr.com/photos/alangauldphotos ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor