Skip to main content

I am having athe data shown in the image:

enter image description hereData

I have been trying to partition and order this dataframedata frame in such a way so that we get the output as shown in the below image:

enter image description hereData

Have tried partitioning and sorting with different columns such as partitioning by id and date and ordering by id, date, and column3 then again tried with partitioning and ordering by id and date but in all the cases it shows the different output.

Can anyone help onwith this  ? I am struggling fromfor the past 1 week on this.

I am having a data shown in the image:

enter image description here

I have been trying to partition and order this dataframe in such a way so that we get the output as shown in the below image:

enter image description here

Have tried partitioning and sorting with different columns such as partitioning by id and date and ordering by id, date and column3 then again tried with partitioning and ordering by id and date but in all the cases it shows the different output.

Can anyone help on this  ? I am struggling from past 1 week on this.

I am having the data shown in the image:

Data

I have been trying to partition and order this data frame in such a way so that we get the output as shown in the below image:

Data

Have tried partitioning and sorting with different columns such as partitioning by id and date and ordering by id, date, and column3 then again tried with partitioning and ordering by id and date but in all the cases it shows the different output.

Can anyone help with this? I am struggling for the past week on this.

added 105 characters in body
Source Link
s.polam
  • 10.4k
  • 2
  • 17
  • 29

I am having a data shown in the linkimage: ( 

https://i.sstatic.net/Hymov.pngenter image description here)

I have been trying to partition and order this dataframe in such a way so that we get the output as shown in the below linkimage: ( 

https://i.sstatic.net/Aaabb.pngenter image description here)

Have tried partitioning and sorting with different columns such as partitioning by id and date and ordering by id, date and column3 then again tried with partitioning and ordering by id and date but in all the cases it shows the different output.

Can anyone help on this ? I am struggling from past 1 week on this.

I am having a data shown in the link: (https://i.sstatic.net/Hymov.png)

I have been trying to partition and order this dataframe in such a way so that we get the output as shown in the below link: (https://i.sstatic.net/Aaabb.png)

Have tried partitioning and sorting with different columns such as partitioning by id and date and ordering by id, date and column3 then again tried with partitioning and ordering by id and date but in all the cases it shows the different output.

Can anyone help on this ? I am struggling from past 1 week on this.

I am having a data shown in the image: 

enter image description here

I have been trying to partition and order this dataframe in such a way so that we get the output as shown in the below image: 

enter image description here

Have tried partitioning and sorting with different columns such as partitioning by id and date and ordering by id, date and column3 then again tried with partitioning and ordering by id and date but in all the cases it shows the different output.

Can anyone help on this ? I am struggling from past 1 week on this.

Source Link
Dhyey Dave
  • 55
  • 1
  • 1
  • 9

Pyspark Dataframe Ordering Issue

I am having a data shown in the link: (https://i.sstatic.net/Hymov.png)

I have been trying to partition and order this dataframe in such a way so that we get the output as shown in the below link: (https://i.sstatic.net/Aaabb.png)

Have tried partitioning and sorting with different columns such as partitioning by id and date and ordering by id, date and column3 then again tried with partitioning and ordering by id and date but in all the cases it shows the different output.

Can anyone help on this ? I am struggling from past 1 week on this.