I have one Information csv , I used below to filter some specific name(Rony) from a column(Names) like below. Need help where marked in bold.
df= pd.read_csv('Info.csv',index_col=False)
App_=df[df['Names']=='Rony']
df_address=[]
address=App['Address']
df_address.append(address)
# This is printing result with index, I do not want to see index .Can index be avoided to print or remove in df_address ?
print(df_address)
dct=next(os.walk('.'))[1]
#Below is not working , Need help to fix this.How it can work with pandas.Need to check if directories name are available in df_address
for i in df_address:
if i in dct:
#Do Some operation
Programs\Python\Python36-32\lib\site-packages\pandas\core\generic.py", line 1121, in __nonzero__ .format(self.__class__.__name__)) ValueError: The truth value of a Series is ambiguous. Use a.empty, a.bool(), a.item(), a.any() or a.all().