I converted a list to a dataframe using the following code:
List1 = ['apple', '123', 'xy24']
df = pd.DataFrame(List1)
df
Output:
(Nothing)
It's not displaying the dataframe.
I tried printing the list by giving
print(List1)
Output:
['apple', '123', 'xy24']