# Rename column if its name matches to a name in given list

**URL:** <https://discourse.julialang.org/t/rename-column-if-its-name-matches-to-a-name-in-given-list/102386>\
**Category:** Data\
**Tags:** dataframes, csv\
**Created:** [August 2, 2023, 9:04am UTC](https://discourse.julialang.org/t/rename-column-if-its-name-matches-to-a-name-in-given-list/102386 "2023-08-02T09:04:43Z")\
**Posts on this page:** 1\
**Showing post:** 17

<div class="post-metadata">

**Author:** ![algunion](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/algunion/32/51630_2.png) [@algunion](https://discourse.julialang.org/u/algunion)\
**Post date:** [August 5, 2023, 4:04pm UTC](https://discourse.julialang.org/t/rename-column-if-its-name-matches-to-a-name-in-given-list/102386/17 "2023-08-05T16:04:09Z")

</div>

> [@raman\_kumar](#):
>
> I have to create a function `change()` that can change the column name if column name matches to any alternative given in `list` .

I understand - but I don’t see what I (or anyone wanting to help) can do here to help (besides actually writing the code for you - which is beyond the scope of this community platform).

> [@raman\_kumar](#):
>
> If i was to write a MWE then why should i have asked you. 😇

If this is your reply I think you are missing the meaning of the MWE.

I quote myself:

> [@algunion](#):
>
> The principle is to share a minimal working example (MWE): which means a code snippet that can be copy-pasted by those willing to help and that will reproduce the specific issue stated by you.

The MWE doesn’t imply that you solve your problem and post the solution: it means to share a code snippet that we can run to reproduce your issue. I think the quote above correctly reflects this.

Now, you are free to formulate your posts as you see fit. However, if you want to get help, you need to be sure you convey enough information so others can provide valuable help: doing the work for (instead of) you is not actually helping (in the long run).

So it is not enough to just state what you want to achieve and expect others to deliver the code for you.

I am here to help (within the limits of my knowledge and experience) - but I don’t think the purpose of this community platform is to fulfill code requests.

Please also take a look at the [following guidelines](https://discourse.julialang.org/t/please-read-make-it-easier-to-help-you/14757).

So, again:

- please share a proper MWE
- precisely state the issue you are experiencing

---

_[View the full topic](https://discourse.julialang.org/t/rename-column-if-its-name-matches-to-a-name-in-given-list/102386)._
