flatmap

作者: hehehehe | 来源:发表于2021-12-08 19:57 被阅读0次
    def order_flatmap(row):
        result = [
            (row['o_addr_normal'],
             (row['order_id'], row['o_addr'], row['o_addr_normal'], row['o_lon'], row['o_lat'])),
            (row['d_addr_normal'],
             (row['order_id'], row['d_addr'], row['d_addr_normal'], row['d_unloaded_lon'], row['d_unloaded_lat']))
        ]
        return result
    

    相关文章

      网友评论

          本文标题:flatmap

          本文链接:https://www.haomeiwen.com/subject/hvntfrtx.html