Getting TypeError in PYSPARK

Get order count per day

ordersPerDay = ordersJoinOrderItems.map(lambda rec: rec[1][1].split(",")[1] + “,” + str(rec[0])).distinct()

When I run above command I am getting Type error as below-

TypeError: can only concatenate list (not “str”) to list

Looks like one of the two fields in the concatenation is a list another is a string.
Can you extract some sample records and add to this post…