I have a pandas DataFrame like this:
min max
1. 10186 10186
2. 10197 10197
3. 10199 11142
4. 11144 11654
5. 11656 13498
6. 13500 13977
7. 13979 14442
8. 14445 14446
9. 14448 14449
Can I get all the values between each min and max values inclusive of these values?
Example Output:
10186
10197
10199, 10200, 10201, 10202 etc.
How can I achieve this? This is a big file containing more than 10k records. Any headstart will also help. I currently got nothing. My present code:
import pandas as pd
avrange = pd.read_excel('C:\\Users\\Desktop\\apvdcorrection.xlsx')
df1 = pd.DataFrame(avrange, columns = ['avmin', 'avmax'])
df2 = df1[df1.avmin != 0]
df2 = df2[df2.avmax != -1]
df2 = df2.astype(int)