0% found this document useful (0 votes)
19 views3 pages

Military Personnel Expenditure Data

The document contains a Python code snippet that creates a DataFrame using labeled data related to personnel and their expenditures. It includes various categories of expenditures such as personnel, equipment, operations, maintenance, training, and home expenditures for different individuals. The output displays the DataFrame and lists the column names.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
19 views3 pages

Military Personnel Expenditure Data

The document contains a Python code snippet that creates a DataFrame using labeled data related to personnel and their expenditures. It includes various categories of expenditures such as personnel, equipment, operations, maintenance, training, and home expenditures for different individuals. The output displays the DataFrame and lists the column names.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

LABELED DATA

CODE:
import pandas as pd
import numpy as np
a=({'PERSON_ID': ['CDS2024_001', 'VCOAS2024_002', 'VCNS2024_003',
'VCAS2024_004', 'CIDS2024_005', 'DGMO2024_006',
'DG_DIA2024_007', 'CNS2024_008', 'CAS2024_009', 'CDS2024_010'],
'PERSON_NAME': ['General Arjun Singh', 'Lieutenant General Sanjay Sharma',
'Vice Admiral Ananya Kapoor', 'Air Marshal Vikram Singh','Lieutenant General
Rajesh Kumar','Major General Siddharth Verma', 'Lieutenant General Priya
Khanna','Vice Admiral Rahul Sharma', 'Air Vice Marshal Priya Patel',
'General Vikrant Kapoor'],
'PERSONNEL_EXPENDITURE': [2000000, 1800000, 1500000,
1700000, 1600000, 1400000, 1750000, 1550000, 1650000,
1950000],
'EQUIPMENT_EXPENDITURE': [1500000, 1300000, 1000000,
1200000, 1100000, 950000, 1250000, 1100000, 1150000, 1400000],
'OPERATIONS_EXPENDITURE ': [1000000, 900000, 800000, 950000,
850000, 700000, 920000, 850000, 900000, 1100000],
'MAINTENANCE_EXPENDITURE': [300000, 280000, 250000,
320000, 290000, 270000, 310000, 270000, 290000, 330000],
'TRAINING_EXPENDITURE': [200000, 180000, 160000, 190000,
170000, 150000, 200000, 175000, 185000, 220000],
'HOME_EXPENDITURE': [500000, 450000, 400000, 480000,
420000, 380000, 500000, 420000, 440000, 500000],
'TOTAL_EXPENDITURE': [5500000, 5230000, 5020000, 5430000,
5050000, 4500000, 5330000, 4815000, 4615000, 5500000]
})
b=[Link](a)
print(b)
print()
print(“------------------column Name-------------------“)
for i in [Link]:
print(i)

OUTPUT:
runfile('C:/Users/SWATHI/[Link]', wdir='C:/Users/SWATHI')
PERSON_ID ... TOTAL_EXPENDITURE
0 CDS2024_001 ... 5500000
1 VCOAS2024_002 ... 5230000
2 VCNS2024_003 ... 5020000
3 VCAS2024_004 ... 5430000
4 CIDS2024_005 ... 5050000
5 DGMO2024_006 ... 4500000
6 DG_DIA2024_007 ... 5330000
7 CNS2024_008 ... 4815000
8 CAS2024_009 ... 4615000
9 CDS2024_010 ... 5500000
[10 rows x 9 columns]

------------------column Name-------------------
PERSON_ID
PERSON_NAME
PERSONNEL_EXPENDITURE
EQUIPMENT_EXPENDITURE
OPERATIONS_EXPENDITURE
MAINTENANCE_EXPENDITURE
TRAINING_EXPENDITURE
HOME_EXPENDITURE
TOTAL_EXPENDITURE

You might also like