# Changing a DataFrame entry using "chop"

**URL:** <https://discourse.julialang.org/t/changing-a-dataframe-entry-using-chop/59796>\
**Category:** New to Julia\
**Created:** [April 22, 2021, 11:27am UTC](https://discourse.julialang.org/t/changing-a-dataframe-entry-using-chop/59796 "2021-04-22T11:27:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nash](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nash/32/14482_2.png) [@Nash](https://discourse.julialang.org/u/Nash)\
**Post date:** [April 22, 2021, 11:27am UTC](https://discourse.julialang.org/t/changing-a-dataframe-entry-using-chop/59796/1 "2021-04-22T11:27:08Z")

</div>

A column in my DataFrame contains Strings that must be cleaned. I was hoping the following method would work, but it does not. What would work?

df[i,3] = chop(df1[i,3], head = 10, tail = 0)

I get the error “ **setindex! not defined for CSV.Column2{String,PooledString}** ”

---

<div class="post-metadata">

**Author:** ![pdeffebach](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pdeffebach/32/10320_2.png) [@pdeffebach](https://discourse.julialang.org/u/pdeffebach)\
**Post date:** [April 22, 2021, 11:56am UTC](https://discourse.julialang.org/t/changing-a-dataframe-entry-using-chop/59796/2 "2021-04-22T11:56:32Z")

</div>

My guess is you aren’t working with a DataFrame. do `df = DataFrame(df)` first.
