combine 2 lists to dataframe python

The solution for “combine 2 lists to dataframe python” can be found here. The following code will assist you in solving the problem.

1
2
3
4
# Python 3 to get list of tuples from two lists
data_tuples = list(zip(Month,Days))
data_tuples
[(‘Jan’, 31), (‘Apr’, 30), (‘Mar’, 31), (‘June’, 30)]

Thank you for using DeclareCode; We hope you were able to resolve the issue.

More questions on [categories-list]

0
inline scripts encapsulated in