Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to remove numbers from a dataframe in python

import pandas as pd

# Example DataFrame
df = pd.DataFrame.from_dict({'Name'  : ['May', 'James', 'Adi22', 'Hello', 'Girl'],
                             'Volume': [23, 12, 11, 34, 56],
                             'Value' : [21321, 12311, 4435, 32454, 654654]})

print(df)

    Name   Value  Volume
0    May   21321      23
1  James   12311      12
2    Adi    4435      11
3  Hello   32454      34
4   Girl  654654      56
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #remove #numbers #dataframe #python
ADD COMMENT
Topic
Name
7+3 =