def fun(data,w,impact):
        # -*- coding: utf-8 -*-
    """Untitled7.ipynb

    Automatically generated by Colaboratory.

    Original file is located at
        https://colab.research.google.com/drive/1jvrVePOPf5YC3b_gccykCHRctzCQLspx
    """

    import numpy as np
    import pandas as pd
    

    df=pd.read_csv(data)

    # df

    y=df['Fund Name']
    df.drop(['Fund Name'],axis=1,inplace=True)

    df



    df.values

    import topsispy as tp
    # w=[1,1,1,1,1]
    w=[int(i) for i in w.split(",")]
    # impact=sys.argv[3]
    impact=[1 if i=='+' else -1 for i in impact]

    # w=w.to_numeric()
    x=tp.topsis(df.values.tolist(),w,impact)

    temp=x[1]
    temp

    df['Topsis Score']=temp
    df

    df["Rank"] = df["Topsis Score"].rank(ascending=False)
    df

    df['Fund Name']=y
    first_column = df.pop('Fund Name')
    df.insert(0, 'Fund Name', first_column)
    df

    df.to_csv("101903539-result.csv",index=False)

