SlideShare a Scribd company logo
1 of 1
I have a data-frame that I am trying to transpose, My original data-frame looks like this in excel
I was able to partially transpose the data and index the Locations, which I would like to be my
first column and not the index.
df_transposed = df.T
df_transposed
df_transposed.reset_index(drop = True, inplace = True)
I would like to have the Location, Assessment, Subject, Grade, Percent Met, Total Met as
columns in the dataframe.

More Related Content

More from PaulntmMilleri

I- Explain this abstract and use some key points to use review some co.docx
I- Explain this abstract and use some key points to use review some co.docxI- Explain this abstract and use some key points to use review some co.docx
I- Explain this abstract and use some key points to use review some co.docx
PaulntmMilleri
 
I've also gathered a list of the primary selling features that Lavish.docx
I've also gathered a list of the primary selling features that Lavish.docxI've also gathered a list of the primary selling features that Lavish.docx
I've also gathered a list of the primary selling features that Lavish.docx
PaulntmMilleri
 
I- CASE STUDY- Trip Management System- Previously people wishing to vi.docx
I- CASE STUDY- Trip Management System- Previously people wishing to vi.docxI- CASE STUDY- Trip Management System- Previously people wishing to vi.docx
I- CASE STUDY- Trip Management System- Previously people wishing to vi.docx
PaulntmMilleri
 

More from PaulntmMilleri (20)

If France and Korea engage in substantial trade but little financial f.docx
If France and Korea engage in substantial trade but little financial f.docxIf France and Korea engage in substantial trade but little financial f.docx
If France and Korea engage in substantial trade but little financial f.docx
 
If a method overloads another method- can the two methods have differe.docx
If a method overloads another method- can the two methods have differe.docxIf a method overloads another method- can the two methods have differe.docx
If a method overloads another method- can the two methods have differe.docx
 
If Assets equal $150 and Liabilities equal $30- what does Owner's Equi.docx
If Assets equal $150 and Liabilities equal $30- what does Owner's Equi.docxIf Assets equal $150 and Liabilities equal $30- what does Owner's Equi.docx
If Assets equal $150 and Liabilities equal $30- what does Owner's Equi.docx
 
If a random variable X is uniformly distributed between 0 and 5 - what.docx
If a random variable X is uniformly distributed between 0 and 5 - what.docxIf a random variable X is uniformly distributed between 0 and 5 - what.docx
If a random variable X is uniformly distributed between 0 and 5 - what.docx
 
If a corpus contains 10-000 documents- and a search query retrieves 10.docx
If a corpus contains 10-000 documents- and a search query retrieves 10.docxIf a corpus contains 10-000 documents- and a search query retrieves 10.docx
If a corpus contains 10-000 documents- and a search query retrieves 10.docx
 
I- Explain this abstract and use some key points to use review some co.docx
I- Explain this abstract and use some key points to use review some co.docxI- Explain this abstract and use some key points to use review some co.docx
I- Explain this abstract and use some key points to use review some co.docx
 
Identify the structure located at the point marked H- Do not give the.docx
Identify the structure located at the point marked H- Do not give the.docxIdentify the structure located at the point marked H- Do not give the.docx
Identify the structure located at the point marked H- Do not give the.docx
 
Identify different aspects of organisational culture in some contempor.docx
Identify different aspects of organisational culture in some contempor.docxIdentify different aspects of organisational culture in some contempor.docx
Identify different aspects of organisational culture in some contempor.docx
 
Identify and describe two ways that non-imaging providers- such as phy.docx
Identify and describe two ways that non-imaging providers- such as phy.docxIdentify and describe two ways that non-imaging providers- such as phy.docx
Identify and describe two ways that non-imaging providers- such as phy.docx
 
Ibrahim is able to lend money to Naif (direct finance) with higher int.docx
Ibrahim is able to lend money to Naif (direct finance) with higher int.docxIbrahim is able to lend money to Naif (direct finance) with higher int.docx
Ibrahim is able to lend money to Naif (direct finance) with higher int.docx
 
ib - ifpenata-1Journal Entries for Purchase- Return- and Remittance-Pe.docx
ib - ifpenata-1Journal Entries for Purchase- Return- and Remittance-Pe.docxib - ifpenata-1Journal Entries for Purchase- Return- and Remittance-Pe.docx
ib - ifpenata-1Journal Entries for Purchase- Return- and Remittance-Pe.docx
 
I've also gathered a list of the primary selling features that Lavish.docx
I've also gathered a list of the primary selling features that Lavish.docxI've also gathered a list of the primary selling features that Lavish.docx
I've also gathered a list of the primary selling features that Lavish.docx
 
I wanted to test the serum of patients to see if they have antibodies.docx
I wanted to test the serum of patients to see if they have antibodies.docxI wanted to test the serum of patients to see if they have antibodies.docx
I wanted to test the serum of patients to see if they have antibodies.docx
 
I- CASE STUDY- Trip Management System- Previously people wishing to vi.docx
I- CASE STUDY- Trip Management System- Previously people wishing to vi.docxI- CASE STUDY- Trip Management System- Previously people wishing to vi.docx
I- CASE STUDY- Trip Management System- Previously people wishing to vi.docx
 
I thought if the Liquidity Effect is fast but small and other effects.docx
I thought if the Liquidity Effect is fast but small and other effects.docxI thought if the Liquidity Effect is fast but small and other effects.docx
I thought if the Liquidity Effect is fast but small and other effects.docx
 
I need to create a table by hand here is what I have so far- ID in.docx
I need to create a table by hand here is what I have so far-     ID in.docxI need to create a table by hand here is what I have so far-     ID in.docx
I need to create a table by hand here is what I have so far- ID in.docx
 
How to split a string before a period using regex- Hi I have a String.docx
How to split a string before a period using regex- Hi I have a String.docxHow to split a string before a period using regex- Hi I have a String.docx
How to split a string before a period using regex- Hi I have a String.docx
 
How The Factor (Technology) Influence The Demand For Maritime Transpor.docx
How The Factor (Technology) Influence The Demand For Maritime Transpor.docxHow The Factor (Technology) Influence The Demand For Maritime Transpor.docx
How The Factor (Technology) Influence The Demand For Maritime Transpor.docx
 
How many years do scientists believe it took Earth to grow to its pres.docx
How many years do scientists believe it took Earth to grow to its pres.docxHow many years do scientists believe it took Earth to grow to its pres.docx
How many years do scientists believe it took Earth to grow to its pres.docx
 
How is JDBC used in MVC applications- a- To generate Data Access Objec.docx
How is JDBC used in MVC applications- a- To generate Data Access Objec.docxHow is JDBC used in MVC applications- a- To generate Data Access Objec.docx
How is JDBC used in MVC applications- a- To generate Data Access Objec.docx
 

Recently uploaded

Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
PECB
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
heathfieldcps1
 
An Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfAn Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdf
SanaAli374401
 

Recently uploaded (20)

Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
An Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfAn Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdf
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 

I have a data-frame that I am trying to transpose- My original data-fr.docx

  • 1. I have a data-frame that I am trying to transpose, My original data-frame looks like this in excel I was able to partially transpose the data and index the Locations, which I would like to be my first column and not the index. df_transposed = df.T df_transposed df_transposed.reset_index(drop = True, inplace = True) I would like to have the Location, Assessment, Subject, Grade, Percent Met, Total Met as columns in the dataframe.