Rename variables

2 minutes
Share the link to this page
Copied
  Completed
You need to have access to the item to view this lesson.
One-time Fee
$49.99
List Price:  $69.99
You save:  $20
€43.30
List Price:  €60.62
You save:  €17.32
£37.67
List Price:  £52.75
You save:  £15.07
CA$69.48
List Price:  CA$97.28
You save:  CA$27.79
A$72.60
List Price:  A$101.65
You save:  A$29.04
S$64.62
List Price:  S$90.48
You save:  S$25.85
HK$391.22
List Price:  HK$547.74
You save:  HK$156.52
CHF 39.91
List Price:  CHF 55.88
You save:  CHF 15.97
NOK kr487.13
List Price:  NOK kr682.02
You save:  NOK kr194.89
DKK kr324.57
List Price:  DKK kr454.42
You save:  DKK kr129.85
NZ$87.01
List Price:  NZ$121.82
You save:  NZ$34.81
د.إ183.62
List Price:  د.إ257.08
You save:  د.إ73.46
৳6,134.40
List Price:  ৳8,588.66
You save:  ৳2,454.25
₹4,742.26
List Price:  ₹6,639.54
You save:  ₹1,897.28
RM200.63
List Price:  RM280.90
You save:  RM80.27
₦69,159.16
List Price:  ₦96,828.36
You save:  ₦27,669.20
₨13,957.20
List Price:  ₨19,541.20
You save:  ₨5,584
฿1,639.96
List Price:  ฿2,296.08
You save:  ฿656.11
₺2,221.22
List Price:  ₺3,109.89
You save:  ₺888.66
B$262.69
List Price:  B$367.79
You save:  B$105.10
R855.82
List Price:  R1,198.22
You save:  R342.40
Лв84.93
List Price:  Лв118.91
You save:  Лв33.98
₩75,384.92
List Price:  ₩105,544.92
You save:  ₩30,160
₪156.85
List Price:  ₪219.61
You save:  ₪62.75
₱3,019.47
List Price:  ₱4,227.50
You save:  ₱1,208.03
¥8,013.34
List Price:  ¥11,219.32
You save:  ¥3,205.98
MX$905.87
List Price:  MX$1,268.29
You save:  MX$362.42
QR182.62
List Price:  QR255.69
You save:  QR73.06
P686.31
List Price:  P960.89
You save:  P274.58
KSh6,493.70
List Price:  KSh9,091.70
You save:  KSh2,598
E£2,631.58
List Price:  E£3,684.42
You save:  E£1,052.84
ብር7,844.68
List Price:  ብር10,983.18
You save:  ብር3,138.50
Kz45,840.83
List Price:  Kz64,180.83
You save:  Kz18,340
CLP$46,287.03
List Price:  CLP$64,805.55
You save:  CLP$18,518.51
CN¥345.52
List Price:  CN¥483.76
You save:  CN¥138.23
RD$2,985.65
List Price:  RD$4,180.15
You save:  RD$1,194.50
DA6,655.71
List Price:  DA9,318.53
You save:  DA2,662.82
FJ$112.57
List Price:  FJ$157.60
You save:  FJ$45.03
Q382.61
List Price:  Q535.69
You save:  Q153.07
GY$10,465.64
List Price:  GY$14,652.74
You save:  GY$4,187.09
ISK kr6,236.75
List Price:  ISK kr8,731.95
You save:  ISK kr2,495.20
DH467.13
List Price:  DH654.02
You save:  DH186.89
L878.15
List Price:  L1,229.49
You save:  L351.33
ден2,668.68
List Price:  ден3,736.37
You save:  ден1,067.68
MOP$403.39
List Price:  MOP$564.78
You save:  MOP$161.39
N$852.32
List Price:  N$1,193.32
You save:  N$341
C$1,835.13
List Price:  C$2,569.33
You save:  C$734.20
रु7,525.23
List Price:  रु10,535.92
You save:  रु3,010.69
S/172.94
List Price:  S/242.13
You save:  S/69.19
K215.40
List Price:  K301.58
You save:  K86.18
SAR187.58
List Price:  SAR262.62
You save:  SAR75.04
ZK941.14
List Price:  ZK1,317.67
You save:  ZK376.53
L221.11
List Price:  L309.57
You save:  L88.46
Kč1,065.25
List Price:  Kč1,491.43
You save:  Kč426.18
Ft16,897.61
List Price:  Ft23,658.01
You save:  Ft6,760.40
SEK kr473.58
List Price:  SEK kr663.06
You save:  SEK kr189.47
ARS$69,185.57
List Price:  ARS$96,865.34
You save:  ARS$27,679.76
Bs346.73
List Price:  Bs485.45
You save:  Bs138.72
COP$183,112.35
List Price:  COP$256,371.94
You save:  COP$73,259.59
₡23,216.70
List Price:  ₡32,505.24
You save:  ₡9,288.54
L1,325.23
List Price:  L1,855.43
You save:  L530.19
₲326,880.27
List Price:  ₲457,658.54
You save:  ₲130,778.26
$U2,030.76
List Price:  $U2,843.23
You save:  $U812.46
zł186.10
List Price:  zł260.55
You save:  zł74.45
Already have an account? Log In

Transcript

Okay in Python programming we can also change the color names of our data data. So we can do something like df dot renamed and columns equal sepal length to this name here. So we can do something like this. The renamed ADF rename columns equals Zeppelin columns equal Paulin. Case SEPA, then came to I say, SEPA, then we can call mine poo in more columns here. Okay, so SEPA land and we have set bovie and we change to sepal we can call them pacta Lane the change to pet lane and pet Toby okay to pet we as species we change to as a species.

Okay then we can run the code. So after we write the code we can run the code column name shall change columns equals apple and to contain, maybe we may sell something. k should be these are braces. colons equal braces. Okay, then we can run the code again. Okay, so our variable or columns had been renamed.

So we can rename our data our data frame columns is meta here.

Sign Up

Share

Share with friends, get 20% off
Invite your friends to LearnDesk learning marketplace. For each purchase they make, you get 20% off (upto $10) on your next purchase.