JSL,透過查看另一個列條件來刪除重複行。再一次問好,
我希望透過查看另一個列條件來刪除重複的行。
我希望JSL 在同一日期中出現重複的“Roi”行時刪除它們,並僅保留按時間排列的最新行(在日期和時間列上),因此最終結果將是僅包含行1,2,3, 4 的表與第 4 行日期相同但時間較早的第 5 行和第 6 行將被刪除。
| 排 | 日期和時間 | 姓名 | 測試時間 | 日期 |
| 1 | 2020 年 8 月 23 日 6:12 下午 | 羅伊 | 85 | 2020年8月23日 |
| 2 | 2020 年 8 月 23 日 1:54 下午 | 擔 | 73 | 2020年8月23日 |
| 3 | 2020 年 8 月 23 日上午 9:21 | 羅伯特 | 76 | 2020年8月23日 |
| 4 | 2020年8月18日 下午 6:12 | 羅伊 | 85 | 2020年8月18日 |
| 5 | 2020年8月18日下午4:57 | 羅伊 | 160 | 2020年8月18日 |
| 6 | 2020年8月18日下午4:49 | 羅伊 | 168 | 2020年8月18日 |
提前致謝。
進階統計建模自動化和腳本編寫資料混合與清理大規模客製化品質和工藝工程分享和交流成果回覆:JSL,透過查看另一個列條件來刪除重複行。這是 JSL 的一部分,可以滿足您的需求。
names default to here(1);
// Point to the data table
dt=current data table();
// The code below is going to sort the data into a possible different
// order, and by adding a columns that shows the original position
// the data can be sorted back to the original position at the end
dt<<NEW column=""></NEW>