Hi I created an empty dataframe, when I added new value to the dataframe, the new column is created, but the new value is not added, so the dataframe is still empty.
unrealized_amt_df=pd.DataFrame()
unrealized_amt_df['Name']='abc'
The shape of the dataframe becomes (0,1). When I run the following:
unrealized_amt_df['Date']=datetime.today().strftime('%Y-%m-%d')
The shape becomes (0,2) now.The columns are 'Name','Date'
Does anyone know how to fix it? Thank you very much in advance.