obs1 is the source dataframe

 

“astype” actually copies the dataframe with type data and column data

 

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
new_data = obs1.astype(obs1.dtypes.to_dict())
new_data = new_date[0:1,:]
new_data = obs1.astype(obs1.dtypes.to_dict()) new_data = new_date[0:1,:]
new_data = obs1.astype(obs1.dtypes.to_dict())
new_data = new_date[0:1,:]

 

Leave a Reply