<SYSTEM_TASK:>
Given the following text problem statement, write Python code to implement the functionality described below in problem statement
<END_TASK>
<USER_TASK:>
Problem:
What I am trying to achieve is a 'highest to lowest' ranking of a list of values, basically the reverse of rankdata
<ASSISTANT_TASK:>
Python Code:
import numpy as np
from scipy.stats import rankdata
a = [1,2,3,4,3,2,3,4]
result = len(a) - rankdata(a).astype(int)
<END_TASK>