def visit_Slice(self, node, **kwargs):
lower = node.lower<EOL>if lower is not None:<EOL><INDENT>lower = self.visit(lower).value<EOL><DEDENT>upper = node.upper<EOL>if upper is not None:<EOL><INDENT>upper = self.visit(upper).value<EOL><DEDENT>step = node.step<EOL>if step is not None:<EOL><INDENT>step = self.visit(step).value<EOL><DEDENT>return slice(lower, upper, step)<EOL>
df.index[slice(4,6)]