![](https://cache.ptt.cc/c/https/i.imgur.com/yKt85T3l.jpg?e=1718565210&s=xPt3ofxwBDT5pBw-Z8WcEQ)
→ clansoda: 這是一個dataframe? 為啥有的空格大有的空格小阿09/13 21:14
→ clansoda: 如果是dataframe 就把vector拉出來unique在assign回去09/13 21:14
→ clansoda: 第二個問題看不懂 unique完不就大家都一次09/13 21:15
→ tony1331: 第2個沒有unique過09/13 21:17
→ tony1331: 拉出來unique 可是我有1萬多列09/13 21:18
→ tony1331: 想說有沒有辦法直接每列unique09/13 21:19
※ 編輯: tony1331 (111.83.119.123), 09/13/2017 21:27:30
→ celestialgod: 看不太懂,每列組數不一是什麼意思 09/13 21:33
→ celestialgod: 你例子裡面每列都是6個英文字母阿 09/13 21:34
→ celestialgod: 我覺得你可以直接給一個程式碼可以產生你的資料 09/13 21:34
→ celestialgod: 而且到底是數字還是英文字母 09/13 21:35
→ celestialgod: 處理方式完全可以不一樣.... 09/13 21:35
→ celestialgod: 請具體呈現一下你的資料格式會比較好 09/13 21:36
→ clansoda: 感覺不是困難的問題 只是要有一個示範資料比較好解 09/13 21:51
→ clansoda: 格式要跟你真正的資料一樣 09/13 21:51
→ tony1331: 好的 我截個圖 09/13 21:56
※ 編輯: tony1331 (111.83.119.123), 09/13/2017 21:59:44
※ 編輯: tony1331 (111.83.119.123), 09/13/2017 22:59:25