{"nbformat":4,"nbformat_minor":0,"metadata":{"colab":{"name":"Untitled0.ipynb","provenance":[],"authorship_tag":"ABX9TyPFs+RCyoIthQCa/rvC776X"},"kernelspec":{"name":"python3","display_name":"Python 3"}},"cells":[{"cell_type":"code","metadata":{"id":"0wFBzK3w0Uuh","colab_type":"code","colab":{},"executionInfo":{"status":"ok","timestamp":1596889294171,"user_tz":-120,"elapsed":1900,"user":{"displayName":"Michaela Denisová","photoUrl":"","userId":"13813739760380468736"}}},"source":["from pandas import read_csv\n","\n","df = read_csv(\"eesti-slovaki-sonastik.csv\")"],"execution_count":41,"outputs":[]},{"cell_type":"code","metadata":{"id":"tVKk74tZ1i__","colab_type":"code","colab":{},"executionInfo":{"status":"ok","timestamp":1596889336658,"user_tz":-120,"elapsed":4121,"user":{"displayName":"Michaela Denisová","photoUrl":"","userId":"13813739760380468736"}}},"source":["def replacing(row):\n","\n","  link = row[\"Sõnaveeb\"]\n","  est_word = row[\"Eesti sõna\"]\n","  if link != \"-\":\n","    return \"https://sonaveeb.ee/search/unif/dlall/dsall/\"+ est_word +\"/1\"\n","  if link == \"-\":\n","    return \"-\"\n","\n","\n","\n","df[\"Sõnaveeb\"] = df.apply(replacing, axis=1)\n","\n","  \n"],"execution_count":42,"outputs":[]},{"cell_type":"code","metadata":{"id":"XYFtDL0N-IL1","colab_type":"code","colab":{},"executionInfo":{"status":"ok","timestamp":1596889401108,"user_tz":-120,"elapsed":2043,"user":{"displayName":"Michaela Denisová","photoUrl":"","userId":"13813739760380468736"}}},"source":["df.to_csv(\"eesti-slovaki-sonastik.csv\", index=False)"],"execution_count":44,"outputs":[]}]}
