0

I would like to explode a Koalas column containing lists of values into multiple columns. When I am trying to use df.explode() as documented here, I am getting the AttributeError: 'DataFrame' object has no attribute 'explode'. I know Koalas is a relatively new API, is explode() not supported yet?

DataBach
  • 1,330
  • 2
  • 16
  • 31
  • 2
    I just implemented this methods for Koalas and created a PR to https://github.com/databricks/koalas/pull/1507 If this PR will be accepted, you can use `DataFrame.explode` in Koalas directly. – Haejoon Lee May 18 '20 at 01:54
  • Thank you @HaejoonLee ! I really appreciate it – DataBach May 18 '20 at 08:43

1 Answers1

1

It seems explode is not implemented yet. You can see all implemented methods at koalas api reference.

villoro
  • 1,469
  • 1
  • 11
  • 14
  • 1
    Ah, I see. Thank you...I will try to use spark's vector slicer then as I can not use Spark's explode equivalent function on my data-frame either. – DataBach Mar 09 '20 at 12:52