import pandas as pd.
# assign data of lists.
data = {'Name': ['Tom', 'Joseph', 'Krish', 'John'], 'Age': [20, 21, 19, 18]}
# Create DataFrame.
df = pd.DataFrame(data)
# Print the output.
print(df)
import pandas as pd.
# assign data of lists.
data = {'Name': ['Tom', 'Joseph', 'Krish', 'John'], 'Age': [20, 21, 19, 18]}
# Create DataFrame.
df = pd.DataFrame(data)
# Print the output.
print(df)