dmap = {0:'Mon',1:'Tue',2:'Wed',3:'Thur',4:'Fri',5:'Sat',6:'Sun'}
df['DayOfWeek']=df['DayOfWeek'].map(dmap)
df.head()
Converting Int to String using map function in pandas
761 Views Asked by Harshi Itha At
1
There are 1 best solutions below
Related Questions in ANACONDA
- Postgres in Conda Environment (Ubuntu 14.04)
- Matplotlib disappearing plots multiple axis
- Is it possible to use an Anaconda Python 3 environment together with Pycharm?
- how to install packages from pypi to anaconda?
- Switching from 64bit python.exe to 32bit in mid execution
- How to use wxpython in an ipython notebook or console
- Error in creating LMDB database file in Python for Caffe
- Difficulty installing python modules after installing anaconda
- Anaconda3 scipy.special lambertw function return nan
- xlwings No module named 'win32api'
- Need help to resolve issue with Anaconda Python 2.7 x32
- Python 2.7.9 Mac OS 10.10.3 Message "setCanCycle: is deprecated. Please use setCollectionBehavior instead"
- How do I set up a virtual environment with Flask using conda?
- Anaconda: How to completely delete Python 3.4?
- Python3.4 Anaconda: Input() Function Broken?
Related Questions in JUPYTER-NOTEBOOK
- Display API documentation as an IPython notebook
- Using matplotlib.pyplot in iPython Notebook
- Executing Javascript cells in Jupyter Notebooks
- SVG elements that worked in past versions of iPython notebook dont seem to work any more
- URLError with SPARQLWrapper at sparql.query().convert()
- Print into console terminal not into cell output of IPython Notebook
- How to modify the line width of ipython notebook markdown cell
- How to align the pandas series in ipython notebook?
- IPython notebook launched, but cannot login via Browser
- Viewing graphs in Jupyter or IPython
- Spark context 'sc' not defined
- Getting UnicodeDecodeError when transposing DataFrame in iPython
- iPython HighCharts Example Notebook
- Matplotlib Python inline on/off
- Arrow color does not change in iPython when I am annotating a point on the scatterplot
Related Questions in JUPYTER
- Executing Javascript cells in Jupyter Notebooks
- Displaying ggplot2 graphs from R in Jupyter
- Jupyter notebook with bibtex citations
- seaborn barplot() output figure is overwritten
- How can I see function arguments in IPython Notebook Server 3?
- Jupyter (ipython notebook), hide menu and some toolbar buttons, or run python code on loading
- Julia parallel computing in IPython Jupyter
- Spark 1.4 increase maxResultSize memory
- Unable to run ipython-notebook 2.7 with jupyterhub
- Simplest Way to Serve Jupyter Incubator Dashboards Locally
- How do I get IntelliJ/PyCharm to recognize an active IPython kernel?
- AttributeError in fit_transform(self, raw_documents, y)
- Jupyter Notebook - .ipynb files - opening as plain text - No longer interactive notebook
- Using pipes to capture things printed to STDERR into Python variable from Jupyter
- ImportError: No module named hmm
Related Questions in ANACONDA-CLUSTER
- I cannot start Anaconda
- Kubernetes with a fixed hostname for pods
- Converting Int to String using map function in pandas
- anaconda cluster and dynamic AWS ip address
- Fail to setup anaconda cluster on bare metal
- Is it safe to delete ~/.conda/pkgs
- "Verifying transaction: failed" Error in updating anaconda form anaconda prompt
- How to activate environments in anaconda by default?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
I didn't understand your question exactly but i guess it has to be something like that