import pandas as pd
from itertools import combinations, product, permutations
MH_P= ["Maria Herrera"]
OP_P= ["Oscar Perez, Owen Price"]
p = []
prod= product(MH_P,HH_P
New_data2.loc[:,"Name"]
Empty=New_data2[(New_data2["Name"].notnull()) & (New_data2["Name"]!=u'')]
if(Empty==False)
for i in list(prod):
print(i)
p.append(i)
I want to print a product in a specific column of a data frame that i already created. Is important to print it with the correct dimention, for example this product will be a 2x2 array that i want to print in just one column and 2 rows, in case i want to do another product i want it to be printed in the next empty row. Im using this code (im totally new with python) but when i run the code it says that the if has an invalid syntax. Do you know how can i solve it?