name                     address             contact_info    
        first_name  last_name       stret   city    mobile      email
    1   AAA             BBB         XXX     YYY     02020       [email protected]
    2   111             222         333     444     239393      [email protected]
I have an excel in the above format. What I want is to have every column inside name and then only mobile column inside contact_info would someone please let me know how I can do this. Following code gives me everything inside name and contact_info
import pandas as pd
df = pd.read_excel("test.xlsx", header=[0, 1], sheet_name="Mapping")
print df[["name", "contact_info"]]
I am trying to get something like this,
first_name  last_name   mobile
AAA         BBB        102020
111         222        239393


