'Create a Dataframe from the list of variables and its values

How to create a Dataframe from a list of variables corresponding to its value.

A = 10
B = 15
df = [A,B]

Output = [output]

1



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source