vince-coder
9/27/2019 - 8:54 PM

Practica4

//1. Columns(i: Int)
df.filter($"Close" < 480 && $"High" < 480).columns()

//2. Count()
df.filter($"Close" < 480 && $"High" < 480).count()

//3. Sort()
df.sort($"Date".desc).show()

//4.Take()
df.select($"Date").take(5)

//5. CollectAsList()
df.filter($"Close" < 480 && $"High" < 480).collectAsList()

//6. First()
df.filter($"Close" < 480 && $"High" < 480).first()