Filter rows and from pandas DataFrame
Use pandas filtering methods to extract companies in the healthcare industry. Use either
DataFrame.query()
or DataFrame.loc[]
to filter the rows where the 'Industry' column has the value Healthcare
.Premium
Python
Setting up Python environment...
Output