Question

In Python, how to create and populate a DataFrame?


Annonce
Ad

Answer

import pandas as pd
d = {'col_1_index': [1, 2, 3], 'col_2_index': [3, 4, 5]}
df = pd.DataFrame(data=d)


[source]
# ID Query