我在从pyspark数据帧上两个现有列的有序连接创建新列时遇到问题,即:
+------+------+--------+
| Col1 | Col2 | NewCol |
+------+------+--------+
| ORD | DFW | DFWORD |
| CUN | MCI | CUNMCI |
| LAX | JFK | JFKLAX |
+------+------+--------+
换句话说,我想获取Col1和Col2,按字母顺序对它们进行排序并将它们连接起来。在
有什么建议吗?在
Tags:
组合^{cd1>}、^{cd2>}和^{cd3>}
相关问题 更多 >
编程相关推荐