Quantcast
Channel: Data Science, Analytics and Big Data discussions - Latest topics
Viewing all articles
Browse latest Browse all 4448

Replacing a particular integer by another integer in pandas dataframe

$
0
0

@ravi_6767 wrote:

Hi,
I have a data-set consisting of a column consisting of years (from 1996 to 2010), after exploration I have found that there are many observations having values equal to 0, which is an outlier. I want to replace the 0's with 2010 and I have used the following code :

features[features.construction_year==0].construction_year=2010

Above code is not replacing the 0's with 2010. Please help !!
Thanks in advance

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4448

Trending Articles