This is my code and output shows "Empty DataFrame"
import pandas as pd
from openpyxl.workbook import Workbook
df_excel = pd.read_excel("test Data.xlsx")
print (df_excel.loc[(df_excel['Dist'] == "Sagar") & (df_excel['Site Potential'] == 200)])
Is there any error in the last line of the code?
The expected output should show all the entries with Dist "Sagar" and "Site Potential" =200. Manually,I can check that there are 2 such entries in the test file.