Title: Generate a specific DataFrame with pandas
Tags: python;pandas
Question: I have 2 variables
name = ['John','Seen','Sam','Tom','Lisa']
language = ['python','java','C++','javascript']
I want to use pandas to generate a DataFrame in a format similar to the following:
Language
python
javascript
python
javascript
python
javascript
Thanks
Comment: Please accept the answer if it's solved your issue. :)

Here is the accepted answer: from  itertools import product
df = pd.DataFrame(product(name,language), columns=['Name','Language'])

Here is another answer: import pandas as pd
name = ['John','Seen','Sam','Tom','Lisa']
language = ['python','java','C++','javascript']
prod=[]
for i in name:
for j in language:
prod.append((i,j))
df=pd.DataFrame(prod, columns=['name','language'])
Comment for this answer: Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer).

Here is another answer: You can try:
import pandas as pd
Knowing that: nameList = ['John','Seen','Sam','Tom','Lisa']
and languageList = ['python','java','C++','javascript']
you do:
df=pd.DataFrame({'name':nameList,'language':languageList})
Comment for this answer: Your method can only form one-to-one data

{'source': 'StackExchangeDataset', 'subset': 'stackoverflow.com', 'metadata': {'AnswerCount': 3, 'CommentCount': 1, 'ContentLicense': 'CC BY-SA 4.0', 'CreationDate': '2021:00:11/05/21', 'FavoriteCount': None, 'PostTypeId': 1, 'Tags': '<python><pandas>', 'Title': 'Generate a specific DataFrame with pandas', 'ViewCount': 57, 'id': 69853485, 'user_AboutMe': None, 'user_AccountId': 19599415.0, 'user_DisplayName': 'xiao_mo_gu', 'user_Reputation': 13.0, 'user_Views': 1.0, 'user_id': 14344609.0}}