Hi,

Yes, you are right. i worked on it and got the solution. .

it should like:

rddname.map(lambda x: â,â.join(str(d) for d in x)) this is working fine.

example:

ordersByStatus rdd:

(uâCOMPLETEâ, 22899)

(uâPAYMENT_REVIEWâ, 729)

(uâPROCESSINGâ, 8275)

(uâCANCELEDâ, 1428)

(uâPENDINGâ, 7610)

(uâCLOSEDâ, 7556)

(uâPENDING_PAYMENTâ, 15030)

(uâSUSPECTED_FRAUDâ, 1558)

(uâON_HOLDâ, 3798)

orderstring = ordersByStatus.map(lambda x: â,â.join(str(d) for d in x))

orderstring rdd:

COMPLETE,22899

PAYMENT_REVIEW,729

PROCESSING,8275

CANCELED,1428

PENDING,7610

CLOSED,7556

PENDING_PAYMENT,15030

SUSPECTED_FRAUD,1558

ON_HOLD,3798