Imagine a dataframe like this:
import pandas as pd
list ={'Security ID':['3e09ax', 'we9lkl', 'as42we','as5322', 'ot24tas', 'c34ci46a8'],
'Industry':['Airplanes', 'Airplanes', 'Oil', 'Oil', 'Housing', 'Trucking'],
'Amount outstanding':[33, 31, 39, 21, 29, 29]}
df = pd.DataFrame(list)
'''
The end goal is to return rows for each Industry for the lowest (min) Amount Outstanding into a "Min Value" dataframe for a daily report
essentially this but for each industry:
df[df['Amount outstanding'] == df['Amount outstanding'].min()]
First step is get Unique Values for [Industry] into a list again and then generate a loop function that does this.
Not sure exactly how to this. This dataframe in reality is 100,000 rows with 30 industries that change daily.