I have the following data file in pandas (python):
BXY A alpha 3. 5. 5 beta 9. 9. 11
I want to change the 'alpha' for another name, for example 'mu'. What should I do?
Use rename with index parameterpass the dictionary to the index parameter
rename
index
df.rename(index={'alpha': 'mu'})
Source: https://habr.com/ru/post/1260479/More articles:Is there anyway access to the subscribed Firebase themes? - swiftIonic 2 Angular2 http post set-cookie - httpIs there a situation where using MOVDQU and MOVUPD is better than MOVUPS? - assemblyLaravel Echo repeating the listen to broadcast n times - socket.ioNew FUITableViewDataSource - how to use? Swift 3 - swiftHow to replace the component used in @viewChildren for test double? - angularVariable definition in if - pythonAssign inside if statement python - pythonCan I assign a value to the left side of a boolean expression (for example, in a while loop)? - pythonSwift - Local image manipulation without cache - iosAll Articles