Composing independent traits

Given two independent traits:

trait T1 {
def x = 42
}

trait T2 {
def x = 0
}
If I try to define a class mixing in these two traits like:

class C extends T1 with T2
I get a compiler error:

How to pivot DataFrame?

I am starting to use Spark Dataframes and I need to be able to pivot the data to create multiple columns out of 1 column with multiple rows. There is built in functionality for that in Scalding and I …