XMLWordPrintableJSON

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 1.3.1
    • Fix Version/s: None
    • Component/s: SQL
    • Labels:
      None
    • Sprint:
      Spark 1.5 doc/QA sprint

      Description

      Spark's DataFrame provide several of the capabilities of Pandas and R Dataframe but in a distributed fashion which makes it almost easy to rewrite Pandas code to Spark.

      Almost, but there is a feature that's difficult to workaround right now, that's the shift method : http://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.shift.html

      I'm working with some data scientists that are using this feature a lot in order to check for "rows equality" after a sort by some keys. Example (in pandas) :

      df['delta'] = (df.START_DATE.shift(-1) - df.END_DATE).astype('timedelta64[D]')
      

      I think this would be troublesome to add, I don't even know if this change would be do-able. But as a user, it would be useful for me.

      Olivier.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                ogirardot Olivier Girardot
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: