It's a 4-episode filler arc that acts as a "prolouge" to Film Z called the "Z's Ambition arc". It isn't necessary to watch to understand the film, but since Film Z is considered canon material in the One Piece continuity since it's from Oda himself, the Z's ambition filler arc could be considered canon too.
It's really up to you whether or not you want to skip it.
|