Synthesize a new series

2018-03-26 Thread qrious
I have a set of series of numbers. The set bears some common property about the series. For example, in one case, Series 1 can be the set of random number of odd numbers starting from 1 and Series N can be the set of random number of odd numbers starting from N. In another case, Series 1 can b

Re: Data-structure for multiway associativity in Python

2018-01-28 Thread qrious
On Sunday, January 28, 2018 at 7:00:38 AM UTC-8, Steven D'Aprano wrote: > > Since you specified that there are no lists with shared members, why > bother returning a list of lists? There will only ever be a single > matching list. > That's correct. It will be a single list. My mistake in typi

Re: Sentiment analysis using sklearn

2018-01-27 Thread qrious
On Saturday, January 27, 2018 at 5:21:15 PM UTC-8, Dan Stromberg wrote: > On Sat, Jan 27, 2018 at 1:05 PM, qrious wrote: > > I am attempting to understand how scikit learn works for sentiment analysis > > and came across this blog post: > > > > https://marcobonzani

Re: Sentiment analysis using sklearn

2018-01-27 Thread qrious
On Saturday, January 27, 2018 at 2:45:30 PM UTC-8, Terry Reedy wrote: > On 1/27/2018 4:05 PM, qrious wrote: > > I am attempting to understand how scikit learn works for sentiment analysis > > and came across this blog post: > > > > https://marcobonzanini.wordpre

Sentiment analysis using sklearn

2018-01-27 Thread qrious
I am attempting to understand how scikit learn works for sentiment analysis and came across this blog post: https://marcobonzanini.wordpress.com/2015/01/19/sentiment-analysis-with-python-and-scikit-learn The corresponding code is at this location: https://gist.github.com/bonzanini/c9248a239

Data-structure for multiway associativity in Python

2018-01-27 Thread qrious
I need a data structure and a corresponding (hopefully fast) mechanism associated with it to do the following. While I am looking for the concept first, my preference for implementation of this will be in Python. [c1, c2,..., cn] is a list of strings (for my own implementation, but could be a

Determine the container class of an object in Python 3

2017-10-25 Thread qrious
Class1 is instantiated in Class2 as follows. Class2 also contains another variable, say: class Class2: class1 = Class1() a = 0 I want to create a method myDef() in Class1 that can read or write to a. How do I access a from within myDef() to access a? Calling Class2.a is not an option

Python turtle: How to change icons

2016-11-25 Thread qrious
Hello All, I would like to change two graphical icons related to turtle graphics using Python: a) One that shows up at the top left corner of the canvas window as in below. I believe this is coming from tk itself. https://s22.postimg.org/tkjaxmh41/image.png b) The icon on the desktop as in