Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python dataframe copy structure

pd.DataFrame().reindex_like(df1)
Out: 
    c1  c2
i1 NaN NaN
i2 NaN NaN
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #dataframe #copy #structure
ADD COMMENT
Topic
Name
9+3 =