Question

In Python, how to create an empty DataFrame with column names?


Annonce
Ad

Answer

import pandas as pd
df = pd.DataFrame(columns = ['col_name_1','col_name_2'])


[source]
# ID Query