Hey all,
I need a clarification, why this spyder new version not able identify a dataframe which is already exists in variable explorer
this is my script
import pandas as pd
a=input("Enter Y/N:")
if a=="Y":
DataFrame=pd.DataFrame()
print ("Empty Data Frame created")
print(DataFrame)
if i execute this script with "Y" condition im able to print empty DataFrame ( mean while DataFrame is stored in variable explorer) - It works
then if i execute line 5 alone "print(DataFrame)" - It works
But if execute the hole script again with "N" condition im getting "NameError: name 'DataFrame' is not defined" on line 5
same script works in old version 3.1 but not working in new version
Regards
Bibeesh