{ "cells": [ { "cell_type": "code", "execution_count": 4, "metadata": {}, "outputs": [], "source": [ "import pandas as pd\n", "import os \n", "\n", "folders = os.listdir(os.getcwd() + os.sep + 'finnish')\n", "\n", "paths_to_folders = [os.getcwd() + os.sep + 'finnish' + os.sep + folder for folder in folders]" ] }, { "cell_type": "code", "execution_count": 9, "metadata": {}, "outputs": [], "source": [ "filepaths_all = []\n", "for path in paths_to_folders:\n", " filepaths = [path + os.sep + file for file in os.listdir(path)]\n", " filepaths_all.extend(filepaths)" ] }, { "cell_type": "code", "execution_count": 11, "metadata": {}, "outputs": [], "source": [ "asd = pd.read_parquet(filepaths_all[0])" ] }, { "cell_type": "code", "execution_count": 26, "metadata": {}, "outputs": [], "source": [ "import datetime\n", "def add_year_month_time_of_day(row):\n", " row['created_utc'] = int(row['created_utc'])\n", " dt_utc_native = datetime.datetime.utcfromtimestamp(row['created_utc'])\n", " row['year'] = dt_utc_native.year\n", " row['day'] = dt_utc_native.day\n", " row['month'] = dt_utc_native.month\n", " row['time'] = dt_utc_native.strftime(\"%H:%M:%S\")\n", " return row" ] }, { "cell_type": "code", "execution_count": 20, "metadata": {}, "outputs": [], "source": [ "df = asd.apply(lambda row: add_year_month_time_of_day(row), axis=1)" ] }, { "cell_type": "code", "execution_count": 27, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "1/1079\n", "2/1079\n", "3/1079\n", "4/1079\n", "5/1079\n", "6/1079\n", "7/1079\n", "8/1079\n", "9/1079\n", "10/1079\n", "11/1079\n", "12/1079\n", "13/1079\n", "14/1079\n", "15/1079\n", "16/1079\n", "17/1079\n", "18/1079\n", "19/1079\n", "20/1079\n", "21/1079\n", "22/1079\n", "23/1079\n", "24/1079\n", "25/1079\n", "26/1079\n", "27/1079\n", "28/1079\n", "29/1079\n", "30/1079\n", "31/1079\n", "32/1079\n", "33/1079\n", "34/1079\n", "35/1079\n", "36/1079\n", "37/1079\n", "38/1079\n", "39/1079\n", "40/1079\n", "41/1079\n", "42/1079\n", "43/1079\n", "44/1079\n", "45/1079\n", "46/1079\n", "47/1079\n", "48/1079\n", "49/1079\n", "50/1079\n", "51/1079\n", "52/1079\n", "53/1079\n", "54/1079\n", "55/1079\n", "56/1079\n", "57/1079\n", "58/1079\n", "59/1079\n", "60/1079\n", "61/1079\n", "62/1079\n", "63/1079\n", "64/1079\n", "65/1079\n", "66/1079\n", "67/1079\n", "68/1079\n", "69/1079\n", "70/1079\n", "71/1079\n", "72/1079\n", "73/1079\n", "74/1079\n", "75/1079\n", "76/1079\n", "77/1079\n", "78/1079\n", "79/1079\n", "80/1079\n", "81/1079\n", "82/1079\n", "83/1079\n", "84/1079\n", "85/1079\n", "86/1079\n", "87/1079\n", "88/1079\n", "89/1079\n", "90/1079\n", "91/1079\n", "92/1079\n", "93/1079\n", "94/1079\n", "95/1079\n", "96/1079\n", "97/1079\n", "98/1079\n", "99/1079\n", "100/1079\n", "101/1079\n", "102/1079\n", "103/1079\n", "104/1079\n", "105/1079\n", "106/1079\n", "107/1079\n", "108/1079\n", "109/1079\n", "110/1079\n", "111/1079\n", "112/1079\n", "113/1079\n", "114/1079\n", "115/1079\n", "116/1079\n", "117/1079\n", "118/1079\n", "119/1079\n", "120/1079\n", "121/1079\n", "122/1079\n", "123/1079\n", "124/1079\n", "125/1079\n", "126/1079\n", "127/1079\n", "128/1079\n", "129/1079\n", "130/1079\n", "131/1079\n", "132/1079\n", "133/1079\n", "134/1079\n", "135/1079\n", "136/1079\n", "137/1079\n", "138/1079\n", "139/1079\n", "140/1079\n", "141/1079\n", "142/1079\n", "143/1079\n", "144/1079\n", "145/1079\n", "146/1079\n", "147/1079\n", "148/1079\n", "149/1079\n", "150/1079\n", "151/1079\n", "152/1079\n", "153/1079\n", "154/1079\n", "155/1079\n", "156/1079\n", "157/1079\n", "158/1079\n", "159/1079\n", "160/1079\n", "161/1079\n", "162/1079\n", "163/1079\n", "164/1079\n", "165/1079\n", "166/1079\n", "167/1079\n", "168/1079\n", "169/1079\n", "170/1079\n", "171/1079\n", "172/1079\n", "173/1079\n", "174/1079\n", "175/1079\n", "176/1079\n", "177/1079\n", "178/1079\n", "179/1079\n", "180/1079\n", "181/1079\n", "182/1079\n", "183/1079\n", "184/1079\n", "185/1079\n", "186/1079\n", "187/1079\n", "188/1079\n", "189/1079\n", "190/1079\n", "191/1079\n", "192/1079\n", "193/1079\n", "194/1079\n", "195/1079\n", "196/1079\n", "197/1079\n", "198/1079\n", "199/1079\n", "200/1079\n", "201/1079\n", "202/1079\n", "203/1079\n", "204/1079\n", "205/1079\n", "206/1079\n", "207/1079\n", "208/1079\n", "209/1079\n", "210/1079\n", "211/1079\n", "212/1079\n", "213/1079\n", "214/1079\n", "215/1079\n", "216/1079\n", "217/1079\n", "218/1079\n", "219/1079\n", "220/1079\n", "221/1079\n", "222/1079\n", "223/1079\n", "224/1079\n", "225/1079\n", "226/1079\n", "227/1079\n", "228/1079\n", "229/1079\n", "230/1079\n", "231/1079\n", "232/1079\n", "233/1079\n", "234/1079\n", "235/1079\n", "236/1079\n", "237/1079\n", "238/1079\n", "239/1079\n", "240/1079\n", "241/1079\n", "242/1079\n", "243/1079\n", "244/1079\n", "245/1079\n", "246/1079\n", "247/1079\n", "248/1079\n", "249/1079\n", "250/1079\n", "251/1079\n", "252/1079\n", "253/1079\n", "254/1079\n", "255/1079\n", "256/1079\n", "257/1079\n", "258/1079\n", "259/1079\n", "260/1079\n", "261/1079\n", "262/1079\n", "263/1079\n", "264/1079\n", "265/1079\n", "266/1079\n", "267/1079\n", "268/1079\n", "269/1079\n", "270/1079\n", "271/1079\n", "272/1079\n", "273/1079\n", "274/1079\n", "275/1079\n", "276/1079\n", "277/1079\n", "278/1079\n", "279/1079\n", "280/1079\n", "281/1079\n", "282/1079\n", "283/1079\n", "284/1079\n", "285/1079\n", "286/1079\n", "287/1079\n", "288/1079\n", "289/1079\n", "290/1079\n", "291/1079\n", "292/1079\n", "293/1079\n", "294/1079\n", "295/1079\n", "296/1079\n", "297/1079\n", "298/1079\n", "299/1079\n", "300/1079\n", "301/1079\n", "302/1079\n", "303/1079\n", "304/1079\n", "305/1079\n", "306/1079\n", "307/1079\n", "308/1079\n", "309/1079\n", "310/1079\n", "311/1079\n", "312/1079\n", "313/1079\n", "314/1079\n", "315/1079\n", "316/1079\n", "317/1079\n", "318/1079\n", "319/1079\n", "320/1079\n", "321/1079\n", "322/1079\n", "323/1079\n", "324/1079\n", "325/1079\n", "326/1079\n", "327/1079\n", "328/1079\n", "329/1079\n", "330/1079\n", "331/1079\n", "332/1079\n", "333/1079\n", "334/1079\n", "335/1079\n", "336/1079\n", "337/1079\n", "338/1079\n", "339/1079\n", "340/1079\n", "341/1079\n", "342/1079\n", "343/1079\n", "344/1079\n", "345/1079\n", "346/1079\n", "347/1079\n", "348/1079\n", "349/1079\n", "350/1079\n", "351/1079\n", "352/1079\n", "353/1079\n", "354/1079\n", "355/1079\n", "356/1079\n", "357/1079\n", "358/1079\n", "359/1079\n", "360/1079\n", "361/1079\n", "362/1079\n", "363/1079\n", "364/1079\n", "365/1079\n", "366/1079\n", "367/1079\n", "368/1079\n", "369/1079\n", "370/1079\n", "371/1079\n", "372/1079\n", "373/1079\n", "374/1079\n", "375/1079\n", "376/1079\n", "377/1079\n", "378/1079\n", "379/1079\n", "380/1079\n", "381/1079\n", "382/1079\n", "383/1079\n", "384/1079\n", "385/1079\n", "386/1079\n", "387/1079\n", "388/1079\n", "389/1079\n", "390/1079\n", "391/1079\n", "392/1079\n", "393/1079\n", "394/1079\n", "395/1079\n", "396/1079\n", "397/1079\n", "398/1079\n", "399/1079\n", "400/1079\n", "401/1079\n", "402/1079\n", "403/1079\n", "404/1079\n", "405/1079\n", "406/1079\n", "407/1079\n", "408/1079\n", "409/1079\n", "410/1079\n", "411/1079\n", "412/1079\n", "413/1079\n", "414/1079\n", "415/1079\n", "416/1079\n", "417/1079\n", "418/1079\n", "419/1079\n", "420/1079\n", "421/1079\n", "422/1079\n", "423/1079\n", "424/1079\n", "425/1079\n", "426/1079\n", "427/1079\n", "428/1079\n", "429/1079\n", "430/1079\n", "431/1079\n", "432/1079\n", "433/1079\n", "434/1079\n", "435/1079\n", "436/1079\n", "437/1079\n", " subreddit created_utc score \\\n", "0 Suomi 1546181040 57 \n", "1 Suomi 1546181271 15 \n", "2 Suomi 1546181411 9 \n", "3 Suomi 1546181411 0 \n", "4 Suomi 1546181804 1 \n", "\n", " body predicted_language \\\n", "0 Kylläpä Suomi törkeästi provosoi Venäjää. Onne... __label__fi \n", "1 Vittu! Mun verorahoilla taas paskaa ostettu. O... __label__fi \n", "2 Mutta ajattelitteko ollenkaan luontoa ennen ku... __label__fi \n", "3 Sekin olis kova.\\nDas Boot u-612 liian legend... __label__fi \n", "4 Voisi kieltää kaikkien henkeen vedettävien ain... __label__fi \n", "\n", " probability year day month time \n", "0 0.998374 2018 30 12 14:44:00 \n", "1 0.999526 2018 30 12 14:47:51 \n", "2 0.989323 2018 30 12 14:50:11 \n", "3 0.895473 2018 30 12 14:50:11 \n", "4 0.998957 2018 30 12 14:56:44 \n", "438/1079\n", "439/1079\n", "440/1079\n", "441/1079\n", "442/1079\n", "443/1079\n", "444/1079\n", "445/1079\n", "446/1079\n", "447/1079\n", "448/1079\n", "449/1079\n", "450/1079\n", "451/1079\n", "452/1079\n", "453/1079\n", "454/1079\n", "455/1079\n", "456/1079\n", "457/1079\n", "458/1079\n", "459/1079\n", "460/1079\n", "461/1079\n", "462/1079\n", "463/1079\n", "464/1079\n", "465/1079\n", "466/1079\n", "467/1079\n", "468/1079\n", "469/1079\n", "470/1079\n", "471/1079\n", "472/1079\n", "473/1079\n", "474/1079\n", "475/1079\n", "476/1079\n", "477/1079\n", "478/1079\n", "479/1079\n", "480/1079\n", "481/1079\n", "482/1079\n", "483/1079\n", "484/1079\n", "485/1079\n", "486/1079\n", "487/1079\n", "488/1079\n", "489/1079\n", "490/1079\n", "491/1079\n", "492/1079\n", "493/1079\n", "494/1079\n", "495/1079\n", "496/1079\n", "497/1079\n", "498/1079\n", "499/1079\n", "500/1079\n", "501/1079\n", "502/1079\n", "503/1079\n", "504/1079\n", "505/1079\n", "506/1079\n", "507/1079\n", "508/1079\n", "509/1079\n", "510/1079\n", "511/1079\n", "512/1079\n", "513/1079\n", "514/1079\n", "515/1079\n", "516/1079\n", "517/1079\n", "518/1079\n", "519/1079\n", "520/1079\n", "521/1079\n", "522/1079\n", "523/1079\n", "524/1079\n", "525/1079\n", "526/1079\n", "527/1079\n", "528/1079\n", "529/1079\n", "530/1079\n", "531/1079\n", "532/1079\n", "533/1079\n", "534/1079\n", "535/1079\n", "536/1079\n", "537/1079\n", "538/1079\n", "539/1079\n", "540/1079\n", "541/1079\n", "542/1079\n", "543/1079\n", "544/1079\n", "545/1079\n", "546/1079\n", "547/1079\n", "548/1079\n", "549/1079\n", "550/1079\n", "551/1079\n", "552/1079\n", "553/1079\n", "554/1079\n", "555/1079\n", "556/1079\n", "557/1079\n", "558/1079\n", "559/1079\n", "560/1079\n", "561/1079\n", "562/1079\n", "563/1079\n", "564/1079\n", "565/1079\n", "566/1079\n", "567/1079\n", "568/1079\n", "569/1079\n", "570/1079\n", "571/1079\n", "572/1079\n", "573/1079\n", "574/1079\n", "575/1079\n", "576/1079\n", "577/1079\n", "578/1079\n", "579/1079\n", "580/1079\n", "581/1079\n", "582/1079\n", "583/1079\n", "584/1079\n", "585/1079\n", "586/1079\n", "587/1079\n", "588/1079\n", "589/1079\n", "590/1079\n", "591/1079\n", "592/1079\n", "593/1079\n", "594/1079\n", "595/1079\n", "596/1079\n", "597/1079\n", "598/1079\n", "599/1079\n", "600/1079\n", "601/1079\n", "602/1079\n", "603/1079\n", "604/1079\n", "605/1079\n", "606/1079\n", "607/1079\n", "608/1079\n", "609/1079\n", "610/1079\n", "611/1079\n", "612/1079\n", "613/1079\n", "614/1079\n", "615/1079\n", "616/1079\n", "617/1079\n", "618/1079\n", "619/1079\n", "620/1079\n", "621/1079\n", "622/1079\n", "623/1079\n", "624/1079\n", "625/1079\n", "626/1079\n", "627/1079\n", "628/1079\n", "629/1079\n", "630/1079\n", "631/1079\n", "632/1079\n", "633/1079\n", "634/1079\n", "635/1079\n", "636/1079\n", "637/1079\n", "638/1079\n", "639/1079\n", "640/1079\n", "641/1079\n", "642/1079\n", "643/1079\n", "644/1079\n", "645/1079\n", "646/1079\n", "647/1079\n", "648/1079\n", "649/1079\n", "650/1079\n", "651/1079\n", "652/1079\n", "653/1079\n", "654/1079\n", "655/1079\n", "656/1079\n", "657/1079\n", "658/1079\n", "659/1079\n", "660/1079\n", "661/1079\n", "662/1079\n", "663/1079\n", "664/1079\n", "665/1079\n", "666/1079\n", "667/1079\n", "668/1079\n", "669/1079\n", "670/1079\n", "671/1079\n", "672/1079\n", "673/1079\n", "674/1079\n", "675/1079\n", "676/1079\n", "677/1079\n", "678/1079\n", "679/1079\n", "680/1079\n", "681/1079\n", "682/1079\n", "683/1079\n", "684/1079\n", "685/1079\n", "686/1079\n", "687/1079\n", "688/1079\n", "689/1079\n", "690/1079\n", "691/1079\n", "692/1079\n", "693/1079\n", "694/1079\n", "695/1079\n", "696/1079\n", "697/1079\n", "698/1079\n", "699/1079\n", "700/1079\n", "701/1079\n", "702/1079\n", "703/1079\n", "704/1079\n", "705/1079\n", "706/1079\n", "707/1079\n", "708/1079\n", "709/1079\n", "710/1079\n", "711/1079\n", "712/1079\n", "713/1079\n", "714/1079\n", "715/1079\n", "716/1079\n", "717/1079\n", "718/1079\n", "719/1079\n", "720/1079\n", "721/1079\n", "722/1079\n", "723/1079\n", "724/1079\n", "725/1079\n", "726/1079\n", "727/1079\n", "728/1079\n", "729/1079\n", "730/1079\n", "731/1079\n", "732/1079\n", "733/1079\n", "734/1079\n", "735/1079\n", "736/1079\n", "737/1079\n", "738/1079\n", "739/1079\n", "740/1079\n", "741/1079\n", "742/1079\n", "743/1079\n", "744/1079\n", "745/1079\n", "746/1079\n", "747/1079\n", "748/1079\n", "749/1079\n", "750/1079\n", "751/1079\n", "752/1079\n", "753/1079\n", "754/1079\n", "755/1079\n", "756/1079\n", "757/1079\n", "758/1079\n", "759/1079\n", "760/1079\n", "761/1079\n", "762/1079\n", "763/1079\n", "764/1079\n", "765/1079\n", "766/1079\n", "767/1079\n", "768/1079\n", "769/1079\n", "770/1079\n", "771/1079\n", "772/1079\n", "773/1079\n", "774/1079\n", "775/1079\n", "776/1079\n", "777/1079\n", "778/1079\n", "779/1079\n", "780/1079\n", "781/1079\n", "782/1079\n", "783/1079\n", "784/1079\n", "785/1079\n", "786/1079\n", "787/1079\n", "788/1079\n", "789/1079\n", "790/1079\n", "791/1079\n", "792/1079\n", "793/1079\n", "794/1079\n", "795/1079\n", "796/1079\n", "797/1079\n", "798/1079\n", "799/1079\n", "800/1079\n", "801/1079\n", "802/1079\n", "803/1079\n", "804/1079\n", "805/1079\n", "806/1079\n", "807/1079\n", "808/1079\n", "809/1079\n", "810/1079\n", "811/1079\n", "812/1079\n", "813/1079\n", "814/1079\n", "815/1079\n", "816/1079\n", "817/1079\n", "818/1079\n", "819/1079\n", "820/1079\n", "821/1079\n", "822/1079\n", "823/1079\n", "824/1079\n", "825/1079\n", "826/1079\n", "827/1079\n", "828/1079\n", "829/1079\n", "830/1079\n", "831/1079\n", "832/1079\n", "833/1079\n", "834/1079\n", "835/1079\n", "836/1079\n", "837/1079\n", "838/1079\n", "839/1079\n", "840/1079\n", "841/1079\n", "842/1079\n", "843/1079\n", "844/1079\n", "845/1079\n", "846/1079\n", "847/1079\n", "848/1079\n", "849/1079\n", "850/1079\n", "851/1079\n", "852/1079\n", "853/1079\n", "854/1079\n", "855/1079\n", "856/1079\n", "857/1079\n", "858/1079\n", "859/1079\n", "860/1079\n", "861/1079\n", "862/1079\n", "863/1079\n", "864/1079\n", "865/1079\n", "866/1079\n", "867/1079\n", "868/1079\n", "869/1079\n", "870/1079\n", "871/1079\n", "872/1079\n", "873/1079\n", "874/1079\n", "875/1079\n", "876/1079\n", "877/1079\n", "878/1079\n", "879/1079\n", "880/1079\n", "881/1079\n", "882/1079\n", "883/1079\n", "884/1079\n", "885/1079\n", "886/1079\n", "887/1079\n", "888/1079\n", "889/1079\n", "890/1079\n", "891/1079\n", "892/1079\n", "893/1079\n", "894/1079\n", "895/1079\n", "896/1079\n", "897/1079\n", "898/1079\n", "899/1079\n", "900/1079\n", "901/1079\n", "902/1079\n", "903/1079\n", "904/1079\n", "905/1079\n", "906/1079\n", "907/1079\n", "908/1079\n", "909/1079\n", "910/1079\n", "911/1079\n", "912/1079\n", "913/1079\n", "914/1079\n", "915/1079\n", "916/1079\n", "917/1079\n", "918/1079\n", "919/1079\n", "920/1079\n", "921/1079\n", "922/1079\n", "923/1079\n", "924/1079\n", "925/1079\n", "926/1079\n", "927/1079\n", "928/1079\n", "929/1079\n", "930/1079\n", "931/1079\n", "932/1079\n", "933/1079\n", "934/1079\n", "935/1079\n", "936/1079\n", "937/1079\n", "938/1079\n", "939/1079\n", "940/1079\n", "941/1079\n", "942/1079\n", "943/1079\n", "944/1079\n", "945/1079\n", "946/1079\n", "947/1079\n", "948/1079\n", "949/1079\n", "950/1079\n", "951/1079\n", "952/1079\n", "953/1079\n", "954/1079\n", "955/1079\n", "956/1079\n", "957/1079\n", "958/1079\n", "959/1079\n", "960/1079\n", "961/1079\n", "962/1079\n", "963/1079\n", "964/1079\n", "965/1079\n", "966/1079\n", "967/1079\n", "968/1079\n", "969/1079\n", "970/1079\n", "971/1079\n", "972/1079\n", "973/1079\n", "974/1079\n", "975/1079\n", "976/1079\n", "977/1079\n", "978/1079\n", "979/1079\n", "980/1079\n", "981/1079\n", "982/1079\n", "983/1079\n", "984/1079\n", "985/1079\n", "986/1079\n", "987/1079\n", "988/1079\n", "989/1079\n", "990/1079\n", "991/1079\n", "992/1079\n", "993/1079\n", "994/1079\n", "995/1079\n", "996/1079\n", "997/1079\n", "998/1079\n", "999/1079\n", "1000/1079\n", "1001/1079\n", "1002/1079\n", "1003/1079\n", "1004/1079\n", "1005/1079\n", "1006/1079\n", "1007/1079\n", "1008/1079\n", "1009/1079\n", "1010/1079\n", "1011/1079\n", "1012/1079\n", "1013/1079\n", "1014/1079\n", "1015/1079\n", "1016/1079\n", "1017/1079\n", "1018/1079\n", "1019/1079\n", "1020/1079\n", "1021/1079\n", "1022/1079\n", "1023/1079\n", "1024/1079\n", "1025/1079\n", "1026/1079\n", "1027/1079\n", "1028/1079\n", "1029/1079\n", "1030/1079\n", "1031/1079\n", "1032/1079\n", "1033/1079\n", "1034/1079\n", "1035/1079\n", "1036/1079\n", "1037/1079\n", "1038/1079\n", "1039/1079\n", "1040/1079\n", "1041/1079\n", "1042/1079\n", "1043/1079\n", "1044/1079\n", "1045/1079\n", "1046/1079\n", "1047/1079\n", "1048/1079\n", "1049/1079\n", "1050/1079\n", "1051/1079\n", "1052/1079\n", "1053/1079\n", "1054/1079\n", "1055/1079\n", "1056/1079\n", "1057/1079\n", "1058/1079\n", "1059/1079\n", "1060/1079\n", "1061/1079\n", "1062/1079\n", "1063/1079\n", "1064/1079\n", "1065/1079\n", "1066/1079\n", "1067/1079\n", "1068/1079\n", "1069/1079\n", "1070/1079\n", "1071/1079\n", "1072/1079\n", "1073/1079\n", "1074/1079\n", "1075/1079\n", "1076/1079\n", "1077/1079\n", "1078/1079\n", "1079/1079\n" ] } ], "source": [ "for i, filepath in enumerate(filepaths_all):\n", " print(f\"{i+1}/{len(filepaths_all)}\")\n", " try:\n", " if i == 0:\n", " df_all = pd.read_parquet(filepath)\n", " df_all = df_all.apply(lambda row: add_year_month_time_of_day(row), axis=1)\n", " else:\n", " df_new = pd.read_parquet(filepath)\n", " df_new = df_new.apply(lambda row: add_year_month_time_of_day(row), axis=1)\n", " df_all = pd.concat([df_new, df_all])\n", " except Exception as e:\n", " print(df_new.head())" ] }, { "cell_type": "code", "execution_count": 29, "metadata": {}, "outputs": [], "source": [ "df_all.to_csv('data_all_fi.csv')" ] }, { "cell_type": "code", "execution_count": 30, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "4476667" ] }, "execution_count": 30, "metadata": {}, "output_type": "execute_result" } ], "source": [ "len(df_all)" ] }, { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [], "source": [ "from datasets import load_dataset" ] }, { "cell_type": "code", "execution_count": 5, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ "Using custom data configuration .-e14a2d6b4b35a498\n" ] }, { "name": "stdout", "output_type": "stream", "text": [ "Downloading and preparing dataset csv/. to G:/hf_cache/csv/.-e14a2d6b4b35a498/0.0.0/6b34fb8fcf56f7c8ba51dc895bfa2bfbe43546f190a60fcf74bb5e8afdcc2317...\n" ] }, { "data": { "application/vnd.jupyter.widget-view+json": { "model_id": "73a198a7d22b4a95af5a5b9fab487982", "version_major": 2, "version_minor": 0 }, "text/plain": [ "Downloading data files: 0%| | 0/1 [00:00