in Education by
18F-AV-1451-A07 Value refer to another sheet called "CONTENT" in which column "B" and row "3". I have load the dataframe using code pd.read_excel('data/A07.xls',sheet_name = 'DM',skiprows = 12, skipfooter = 2) I'm getting null value in that column of "Conversion Definition" instead of "18F-AV-1451-A07". how can i get that data in my dataframe, and i don't want to do hardcoded. JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
First Credits, I didn't actually solve this, i took help from user U9-Forwrad, Now to do this you need import pandas as pd xlsx = pd.ExcelFile('Sample.xlsx') df1 = pd.read_excel(xlsx, 'CONTENT', header=None) df2 = pd.read_excel(xlsx, 'Sheet2') boolean = df2['Class'].isin(df1[0].fillna(df1[1]).dropna()) idxs = boolean.index[boolean == True] print(df2.iloc[idxs[0]:idxs[1]+1]) Which gives you Day Month Class 1 tuesday Feb CM 2 Wednesday Mar NaN 3 Thursday Apr NaN 4 Friday May NaN 5 Saturday Jun NaN 6 Sunday Jul DM Which I think is what you are looking for. Note: You will need to convert the file to xlsx, ODS format isn't supported by pandas.

Related questions

0 votes
    I have a csv file and I am reading this file in python using pandas. I want to read each row of ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 21, 2022 in Education by JackTerrance
0 votes
    Say I have a dictionary that the key of year, and the corresponding value of a list of values. Is ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 7, 2022 in Education by JackTerrance
0 votes
    Currently I'm returning column name of the max value in the each row. df['Active'] = df.idxmax( ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 5, 2022 in Education by JackTerrance
0 votes
    Currently I'm returning column name of the max value in the each row. df['Active'] = df.idxmax( ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 2, 2022 in Education by JackTerrance
0 votes
    Mr.Iyer is an Accountant. He normally has to make balance sheet, profit and loss statements etc that need ... easily and effectively? Select the correct answer from above options...
asked Nov 30, 2021 in Education by JackTerrance
0 votes
    I am trying to create a pandas dataframe that combines all children into one row class Parent(Base): ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 16, 2022 in Education by JackTerrance
0 votes
    I have a simple method to search a pandas dataframe column for a list of keywords; however, I'd like to create a ... do everyth 28,passei o dia com o meu amor comemo demai...
asked Apr 13, 2022 in Education by JackTerrance
0 votes
    I have a dataset with employee payroll information (df2). It has a date, job title, shift start ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 12, 2022 in Education by JackTerrance
0 votes
    I have a pandas series containing a list of dictionaries. I'd like to parse the contents of the ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 6, 2022 in Education by JackTerrance
0 votes
    In one Google sheet workbook, lets say I have Sheet1 with 5 rows as Sheet1 And I have Sheet2 as ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 6, 2022 in Education by JackTerrance
0 votes
    I'm working on this script that first takes all .csv's and converts them .xlsx's in a separate ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 3, 2022 in Education by JackTerrance
0 votes
    I'm working on this script that first takes all .csv's and converts them .xlsx's in a separate ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Apr 3, 2022 in Education by JackTerrance
0 votes
    How to read an excel sheet and put the cell value within different text fields through UiPath? I have a excel ... help me out please? Select the correct answer from above options...
asked Feb 8, 2022 in Education by JackTerrance
0 votes
    We can import data from another sheet by using the Clipboard. (1 Point) True False Can’t say Select the correct answer from above options...
asked Nov 27, 2021 in Education by JackTerrance
0 votes
    Nested fields in BigQuery schema are referred to as _______. (1)Semi-colon (2)Colon (3)dot (4)Comma...
asked Jun 1, 2021 in Technology by JackTerrance
...