[Tutor] combinations of all rows and cols from a dataframe

Dennis Lee Bieber wlfraed at ix.netcom.com
Thu Mar 30 21:51:43 EDT 2023


On Thu, 30 Mar 2023 13:41:09 +0200, marc nicole <mk1853387 at gmail.com>
declaimed the following:

>@Peter what you did is more or less what i was looking for except that i
>see "duplicate" tuples e.g.,   ([2], [6, 5]) &  ([6, 5], [2]) which are
>unwanted in the final output

	So... you may want to drop the tuples of lists, and go for sets of
tuples? And a set for the overall result system. Sets don't allow
duplicates, for the most part.



More information about the Tutor mailing list