Answers for "how to get an empty data.frame"

2

initialize pandas dataframe with column names

column_names = ["a", "b", "c"]
df = pd.DataFrame(columns = column_names)
Posted by: Guest on October-19-2020
3

create empty pandas dataframe

df = pd.DataFrame(columns=['a', 'b', 'c'])
Posted by: Guest on September-21-2020

Code answers related to "how to get an empty data.frame"

Python Answers by Framework

Browse Popular Code Answers by Language