Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

rename colonne pandas

df = pd.DataFrame({"A": [1, 2, 3], "B": [4, 5, 6]})
df.rename(columns={"A": "a", "B": "c"})
   a  c
0  1  4
1  2  5
2  3  6
Comment

PREVIOUS NEXT
Code Example
Python :: every cell change comma to point pandas 
Python :: How do I schedule an email to send at a certain time using cron and smtp, in python 
Python :: compilation terminated. In file included from plugins/python/pyloader.c:1:0: plugins/python/uwsgi_python.h:2:10: fatal error: Python.h: No such file or directory #include <Python.h 
Python :: Install pygmt in Anaconda prompt 
Python :: sys module in python 
Python :: python data types 
Python :: max element in dictionary python 
Python :: for in list start with index python 
Python :: opkg install python-lxml_2.2.8-r1_mips32el.ipk 
Python :: python select file in folder given extension 
Python :: isprime lambda python 
Python :: Get percentage of missing values pyspark all columns 
Python :: pd dataframe 
Python :: reading csv in spark 
Python :: multiple categories on distplot 
Python :: pickle.load from gpu device to cpu 
Python :: cv2 and PIL BRG to RGB 
Python :: python 3d list 
Python :: django set cookie 
Python :: Connect to MySQL Using Connector Python C Extension 
Python :: select inverse with conditions pandas 
Python :: column to list pyspark 
Python :: UserWarning: Failed to initialize NumPy: numpy.core.multiarray failed to import (Triggered internally at 
Python :: Python __floordiv__ 
Python :: Python how to use __add__ 
Python :: django count all objects 
Python :: python use negation with maskedarray 
Python :: get every second elemnt of array matlab 
Python :: python chunk text 
Python :: to_datetime with non zero padded values python 
ADD CONTENT
Topic
Content
Source link
Name
2+3 =