Create a python function

  • Status: Closed
  • Prize: $20
  • Entries Received: 7
  • Winner: sakhawat2

Contest Brief

I need a solution on this pandas dataframe. As you can see from the images the column 'pre3' should contain the 3 previous values from 'Brand' column including the same row Brand value.

Recommended Skills

Top entries from this contest

View More Entries

Public Clarification Board

  • uzairnaseer920
    uzairnaseer920
    • 4 years ago

    ???????????//

    • 4 years ago
  • uzairnaseer920
    uzairnaseer920
    • 4 years ago

    Please decide qucik

    • 4 years ago
  • visweswaran1998
    visweswaran1998
    • 4 years ago

    If there is no three previous values should enter 0?

    • 4 years ago
    1. amin32846
      Contest Holder
      • 4 years ago

      Hi, if the 3 previous values not available, it can return NaN or just 0

      • 4 years ago

How to get started with contests

  • Post your contest

    Post Your Contest Quick and easy

  • Get tons of entries

    Get Tons of Entries From around the world

  • Award the best entry

    Award the best entry Download the files - Easy!

Post a Contest Now or Join us Today!