python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
product of different length list using itertools in Python
I have the following lists:
sectors = ["A", "B"]
rows = [['1', '2', '3'], ['1', '2', '3', '4']]
seats = [['ab', 'abcd', 'ab'], ['ab', 'abcd', 'ab', 'abcd']]
and I want to create...
tetris555
Votes: 0
Answers: 2
How can I use for loops to convert the columns and its contents from a df to a more organized ones on Python? Pandas related
I got the following df as the result of a previous process that made some Cartesian Products:
Permutations FilePermutations
0 Fondo+Cuerpo+Ojos+Color+Pinzas+Puas Oceano.png+Cu...

NoahVerner
Votes: 0
Answers: 1
How can I convert the contents from 2 cells in a row (df) to say several more cells in the same row on Python? Pandas related
Let's say I have the following df (it's a little sample from a bigger one), each row contains 3 cells:
Permutations FilePermutations
0 Fondo+Cuerpo+Ojos+Color+Pinzas+Puas Ocea...

NoahVerner
Votes: 0
Answers: 1
How to implement a recursive function to save the elements of the N-th Cartesian Power of (0,1,...,N) in C++?
If the question is not clear, I want to have for example if N=4 a result like this:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 . . . .
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 . . . .
0 0 0 0 0 1 1 1 1 1 ...
encelado
Votes: 0
Answers: 1