# Transform() within missing column names

**URL:** <https://discourse.julialang.org/t/transform-within-missing-column-names/59434>\
**Category:** General Usage\
**Created:** [April 16, 2021, 7:38pm UTC](https://discourse.julialang.org/t/transform-within-missing-column-names/59434 "2021-04-16T19:38:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mengxiaoliu](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mengxiaoliu/32/23601_2.png) [@mengxiaoliu](https://discourse.julialang.org/u/mengxiaoliu)\
**Post date:** [April 16, 2021, 7:38pm UTC](https://discourse.julialang.org/t/transform-within-missing-column-names/59434/1 "2021-04-16T19:38:59Z")

</div>

I am using the transform() function on a simple dataframe to achieve two purposes:

1. I want to create the same number of columns (with the same names) as rows.
2. I want to create a column named “Total” which adds up the numbers in all the columns for each row.  
The screenshot below shows the dataframe and the error message I received:  
 ![Screen Shot 2021-04-16 at 3.30.14 PM](https://global.discourse-cdn.com/julialang/original/3X/7/a/7ae66ef4fec765aaf35e23253e6d5bbedf029756.png)  
If I apply the same function which already satisfied condition 1 from above, there is no error message:  
 ![Screen Shot 2021-04-16 at 3.36.08 PM](https://global.discourse-cdn.com/julialang/original/3X/7/8/78614aa874788b3f3ff61c5ff708b83fe479f591.jpeg)
