{"id":298843,"date":"2020-02-18T09:00:25","date_gmt":"2020-02-18T09:00:25","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=298843"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=298843","title":{"rendered":"\u041f\u0430\u043d\u0434\u0430\u0441 \u0438 \u0434\u0440\u0443\u0433\u0438\u0435 \u0434\u043b\u044f \u0442\u043e\u043b\u0441\u0442\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445"},"content":{"rendered":"\n<div class=\"post__text post__text-html\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/488594\/\">\u0412 \u044d\u0442\u043e\u0439 \u0437\u0430\u043c\u0435\u0442\u043a\u0435 \u044f \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443 \u043e \u043f\u0430\u0440\u0435 \u043f\u0440\u043e\u0441\u0442\u044b\u0445 \u043f\u0440\u0438\u0435\u043c\u043e\u0432, \u043f\u043e\u043b\u0435\u0437\u043d\u044b\u0445 \u043f\u0440\u0438 \u0440\u0430\u0431\u043e\u0442\u0435 \u0441 \u0434\u0430\u043d\u043d\u044b\u043c\u0438, \u043d\u0435 \u043f\u043e\u043c\u0435\u0449\u0430\u044e\u0449\u0438\u043c\u0438\u0441\u044f \u0432 \u043f\u0430\u043c\u044f\u0442\u044c \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u044b, \u043d\u043e \u0432\u0441\u0435 \u0435\u0449\u0435 \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u043c\u0435\u043b\u043a\u0438\u043c\u0438 \u0447\u0442\u043e\u0431\u044b \u043d\u0430\u0437\u044b\u0432\u0430\u0442\u044c\u0441\u044f \u0411\u043e\u043b\u044c\u0448\u0438\u043c\u0438. \u0421\u043b\u0435\u0434\u0443\u044f \u0430\u043d\u0433\u043b\u043e\u044f\u0437\u044b\u0447\u043d\u043e\u0439 \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0438 (large but not big), \u0431\u0443\u0434\u0435\u043c \u043d\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u044d\u0442\u0438 \u0434\u0430\u043d\u043d\u044b\u0435 \u0442\u043e\u043b\u0441\u0442\u044b\u043c\u0438. \u0420\u0435\u0447\u044c \u0438\u0434\u0435\u0442 \u043e \u0440\u0430\u0437\u043c\u0435\u0440\u0430\u0445 \u0432 \u0435\u0434\u0438\u043d\u0438\u0446\u044b \u0438 \u0434\u0435\u0441\u044f\u0442\u043a\u0438 \u0433\u0438\u0433\u0430\u0431\u0430\u0439\u0442.<\/p>\n<p>  [\u0414\u0438\u0441\u043a\u043b\u0435\u0439\u043c\u0435\u0440\u044a]\u0415\u0441\u043b\u0438 \u0432\u044b \u043b\u044e\u0431\u0438\u0442\u0435 SQL \u0432\u0441\u0435 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u043e\u0435 \u043d\u0438\u0436\u0435 \u043c\u043e\u0436\u0435\u0442 \u0432\u044b\u0437\u0432\u0430\u0442\u044c \u0432 \u0432\u0430\u0441 \u044f\u0440\u043a\u0438\u0435, \u0441\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e, \u043d\u0435\u0433\u0430\u0442\u0438\u0432\u043d\u044b\u0435 \u044d\u043c\u043e\u0446\u0438\u0438, \u0432 \u0413\u043e\u043b\u043b\u0430\u043d\u0434\u0438\u0438 49262 \u0422\u0435\u0441\u043b\u044b, \u0438\u0437 \u043d\u0438\u0445 427 \u0442\u0430\u043a\u0441\u0438, \u0434\u0430\u043b\u044c\u0448\u0435 \u043b\u0443\u0447\u0448\u0435 \u043d\u0435 \u0447\u0438\u0442\u0430\u0439\u0442\u0435 [\/\u0414\u0438\u0441\u043a\u043b\u0435\u0439\u043c\u0435\u0440\u044a].<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/-s\/ac\/gl\/-sacgl0hwmynxnpiov5s_coofa4.png\" alt=\"image\"><br \/>  <a name=\"habracut\"><\/a><br \/>  \u041e\u0442\u043f\u0440\u0430\u0432\u043d\u043e\u0439 \u0442\u043e\u0447\u043a\u043e\u0439 \u0441\u0442\u0430\u043b\u0430 <a href=\"https:\/\/habr.com\/ru\/post\/485426\/\">\u0441\u0442\u0430\u0442\u044c\u044f \u043d\u0430 \u0445\u0430\u0431\u0440\u0435<\/a> \u0441 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435\u043c \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0433\u043e \u043d\u0430\u0431\u043e\u0440\u0430 \u0434\u0430\u043d\u043d\u044b\u0445 \u2014 \u043f\u043e\u043b\u043d\u043e\u0433\u043e \u0441\u043f\u0438\u0441\u043a\u0430 \u0442\u0440\u0430\u043d\u0441\u043f\u043e\u0440\u0442\u043d\u044b\u0445 \u0441\u0440\u0435\u0434\u0441\u0442\u0432 \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u0432 \u0413\u043e\u043b\u043b\u0430\u043d\u0434\u0438\u0438, 14 \u043c\u0438\u043b\u043b\u0438\u043e\u043d\u043e\u0432 \u0441\u0442\u0440\u043e\u043a, \u0432\u0441\u0451 \u043e\u0442 \u0441\u0435\u0434\u0435\u043b\u044c\u043d\u044b\u0445 \u0442\u044f\u0433\u0430\u0447\u0435\u0439 \u0434\u043e \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u0432\u0435\u043b\u043e\u0441\u0438\u043f\u0435\u0434\u043e\u0432 \u0441\u043e \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c\u044e \u0432\u044b\u0448\u0435 25 \u043a\u043c\/\u0447.<\/p>\n<p>  \u041d\u0430\u0431\u043e\u0440 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0439, \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 7 \u0413\u0438\u0433\u0430\u0431\u0430\u0439\u0442, <a href=\"https:\/\/opendata.rdw.nl\/Voertuigen\/Open-Data-RDW-Gekentekende_voertuigen\/m9d7-ebf2\">\u0441\u043a\u0430\u0447\u0430\u0442\u044c<\/a> \u043c\u043e\u0436\u043d\u043e \u043d\u0430 \u0441\u0430\u0439\u0442\u0435 \u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0439 \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u0438. <\/p>\n<p>  \u041f\u043e\u043f\u044b\u0442\u043a\u0430 \u0437\u0430\u0433\u043d\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u043a\u0430\u043a \u0435\u0441\u0442\u044c \u0432 \u043f\u0430\u043d\u0434\u0430\u0441 \u0447\u0442\u043e\u0431\u044b \u0438\u0445 \u043f\u043e\u0444\u0438\u043b\u044c\u0442\u0440\u043e\u0432\u0430\u0442\u044c \u0438 \u043f\u043e\u0447\u0438\u0441\u0442\u0438\u0442\u044c \u043e\u043a\u043e\u043d\u0447\u0438\u043b\u0430\u0441\u044c \u0444\u0438\u0430\u0441\u043a\u043e (\u0433\u043e\u0441\u043f\u043e\u0434\u0430 SQL-\u0433\u0443\u0441\u0430\u0440\u044b, \u044f \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0430\u043b!). \u041f\u0430\u043d\u0434\u0430\u0441 \u0443\u043f\u0430\u043b \u043e\u0442 \u043d\u0435\u0445\u0432\u0430\u0442\u043a\u0438 \u043f\u0430\u043c\u044f\u0442\u0438 \u043d\u0430 \u0434\u0435\u0441\u043a\u0442\u043e\u043f\u0435 \u0441 8 \u0413\u0431. \u041c\u0430\u043b\u043e\u0439 \u043a\u0440\u043e\u0432\u044c\u044e \u0432\u043e\u043f\u0440\u043e\u0441 \u043c\u043e\u0436\u043d\u043e \u0440\u0435\u0448\u0438\u0442\u044c \u0435\u0441\u043b\u0438 \u0432\u0441\u043f\u043e\u043c\u043d\u0438\u0442\u044c, \u0447\u0442\u043e \u043f\u0430\u043d\u0434\u0430\u0441 \u0443\u043c\u0435\u0435\u0442 \u0447\u0438\u0442\u0430\u0442\u044c csv \u0444\u0430\u0439\u043b\u044b \u043a\u0443\u0441\u043e\u0447\u043a\u0430\u043c\u0438 \u0443\u043c\u0435\u0440\u0435\u043d\u043d\u043e\u0433\u043e \u0440\u0430\u0437\u043c\u0435\u0440\u0430. \u0420\u0430\u0437\u043c\u0435\u0440 \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u0430 \u0432 \u0441\u0442\u0440\u043e\u043a\u0430\u0445 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u043c chunksize. <\/p>\n<p>  \u0414\u043b\u044f \u0438\u043b\u043b\u044e\u0441\u0442\u0440\u0430\u0446\u0438\u0438 \u0440\u0430\u0431\u043e\u0442\u044b \u043d\u0430\u043f\u0438\u0448\u0435\u043c \u043f\u0440\u043e\u0441\u0442\u0443\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u0434\u0435\u043b\u0430\u044e\u0449\u0443\u044e \u0437\u0430\u043f\u0440\u043e\u0441 \u0438 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u044e\u0449\u0443\u044e, \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0432\u0441\u0435\u0433\u043e \u0435\u0441\u0442\u044c \u043c\u0430\u0448\u0438\u043d \u0422\u0435\u0441\u043b\u0430 \u0438 \u043a\u0430\u043a\u0430\u044f \u0438\u0445 \u0434\u043e\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0432 \u0442\u0430\u043a\u0441\u0438. \u0411\u0435\u0437 \u0444\u043e\u043a\u0443\u0441\u043e\u0432 \u0441 \u043f\u043e\u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u043d\u044b\u043c \u0447\u0442\u0435\u043d\u0438\u0435\u043c \u0442\u0430\u043a\u043e\u0439 \u0437\u0430\u043f\u0440\u043e\u0441 \u0441\u043f\u0435\u0440\u0432\u0430 \u043e\u0442\u044a\u0435\u0434\u0430\u0435\u0442 \u0432\u0441\u044e \u043f\u0430\u043c\u044f\u0442\u044c, \u043f\u043e\u0442\u043e\u043c \u0434\u043e\u043b\u0433\u043e \u043c\u0443\u0447\u0430\u0435\u0442\u0441\u044f, \u0430 \u043f\u043e\u0434 \u043a\u043e\u043d\u0435\u0446 \u043e\u0431\u0432\u0430\u043b\u0438\u0432\u0430\u0435\u0442 \u043f\u0430\u043d\u0434\u0430\u0441. <\/p>\n<p>  C \u043f\u043e\u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u043d\u044b\u043c \u0447\u0442\u0435\u043d\u0438\u0435\u043c \u043d\u0430\u0448\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u0430\u043a:<\/p>\n<pre><code class=\"python\">def pandas_chunky_query():     print('reading csv file with pandas in chunks')     filtered_chunk_list=[]     for chunk in pd.read_csv('C:\\Open_data\\RDW_full.CSV', chunksize=1E+6):         filtered_chunk=chunk[chunk['Merk'].isin(['TESLA MOTORS','TESLA'])]         filtered_chunk_list.append(filtered_chunk)     model_df = pd.concat(filtered_chunk_list)     print(model_df['Taxi indicator'].value_counts()) <\/code><\/pre>\n<p>   \u0423\u043a\u0430\u0437\u0430\u0432 \u0432\u043f\u043e\u043b\u043d\u0435 \u0440\u0430\u0437\u0443\u043c\u043d\u044b\u0439 \u043c\u0438\u043b\u043b\u0438\u043e\u043d \u0441\u0442\u0440\u043e\u043a \u043c\u043e\u0436\u043d\u043e \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0437\u0430\u043f\u0440\u043e\u0441 \u0437\u0430 1:46 \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0432 1965 M, \u043f\u0430\u043c\u044f\u0442\u0438 \u043d\u0430 \u043f\u0438\u043a\u0435. \u0412\u0441\u0435 \u0446\u0438\u0444\u0440\u044b \u0434\u043b\u044f \u0441\u0442\u0440\u0435\u043c\u043d\u043e\u0433\u043e \u0434\u0435\u0441\u043a\u0442\u043e\u043f\u0430 \u0441 \u0447\u0435\u043c-\u0442\u043e \u0434\u0440\u0435\u0432\u043d\u0438\u043c, \u0432\u043e\u0441\u044c\u043c\u0438\u044f\u0434\u0435\u0440\u043d\u044b\u043c \u043e 8 \u0413\u0431 \u043f\u0430\u043c\u044f\u0442\u0438 \u0438 \u043f\u043e\u0434 \u0441\u0435\u0434\u044c\u043c\u043e\u0439 \u0432\u0438\u043d\u0434\u043e\u0439.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/7d\/id\/0-\/7did0-qetjm9v9wrlaouudevkss.png\" alt=\"image\"><\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/8n\/ch\/go\/8nchgo5c-tr54min7qwpfvgwuuq.png\" alt=\"image\"><\/p>\n<p>  \u0415\u0441\u043b\u0438 \u043c\u0435\u043d\u044f\u0442\u044c chunksize \u0442\u043e \u043f\u0438\u043a\u043e\u0432\u044b\u0439 \u0440\u0430\u0441\u0445\u043e\u0434 \u043f\u0430\u043c\u044f\u0442\u0438 \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0437\u0430 \u043d\u0438\u043c \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0431\u0443\u043a\u0432\u0430\u043b\u044c\u043d\u043e, \u0432\u0440\u0435\u043c\u044f \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u043c\u0430\u043b\u043e. \u0414\u043b\u044f 0.5 \u041c \u0441\u0442\u0440\u043e\u043a \u0437\u0430\u043f\u0440\u043e\u0441 \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 1:44 \u0438 1063 \u041c\u0431, \u0434\u043b\u044f 2\u041c 1:53 \u0438 3762 \u041c\u0431.<\/p>\n<p>  \u0421\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u043d\u0435 \u043e\u0441\u043e\u0431\u043e \u0440\u0430\u0434\u0443\u0435\u0442, \u0435\u0449\u0435 \u043c\u0435\u043d\u044c\u0448\u0435 \u0440\u0430\u0434\u0443\u0435\u0442 \u0442\u043e, \u0447\u0442\u043e \u0441\u0447\u0438\u0442\u044b\u0432\u0430\u043d\u0438\u0435 \u0444\u0430\u0439\u043b\u0430 \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u0430\u043c\u0438 \u0437\u0430\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u043f\u0438\u0441\u0430\u0442\u044c \u0430\u0434\u0430\u043f\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043f\u043e\u0434 \u044d\u0442\u043e \u0444\u0443\u043d\u043a\u0446\u0438\u0438, \u0440\u0430\u0431\u043e\u0442\u0430\u044e\u0449\u0438\u0435 \u0441\u043e \u0441\u043f\u0438\u0441\u043a\u0430\u043c\u0438 \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0430\u0434\u043e \u043f\u043e\u0442\u043e\u043c \u0441\u043e\u0431\u0438\u0440\u0430\u0442\u044c \u0432 \u0434\u0430\u0442\u0430\u0444\u0440\u0435\u0439\u043c. \u0422\u0430\u043a\u0436\u0435 \u043d\u0435 \u043e\u0441\u043e\u0431\u043e \u0440\u0430\u0434\u0443\u0435\u0442 \u0441\u0430\u043c \u0444\u043e\u0440\u043c\u0430\u0442 csv, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 \u043c\u043d\u043e\u0433\u043e \u043c\u0435\u0441\u0442\u0430 \u0438 \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u043e \u0447\u0438\u0442\u0430\u0435\u0442\u0441\u044f. <\/p>\n<p>  \u0420\u0430\u0437 \u0443\u0436 \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0437\u0430\u0433\u043d\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u0432 \u043f\u0430\u043d\u0434\u0430\u0441 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0434\u043b\u044f \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u0433\u043e\u0440\u0430\u0437\u0434\u043e \u0431\u043e\u043b\u0435\u0435 \u043a\u043e\u043c\u043f\u0430\u043a\u0442\u043d\u044b\u0439 \u0430\u043f\u0430\u0447\u0435\u0432\u0441\u043a\u0438\u0439 \u0444\u043e\u0440\u043c\u0430\u0442 <a href=\"https:\/\/parquet.apache.org\/\">parquet<\/a> \u0433\u0434\u0435 \u0438 \u0441\u0436\u0430\u0442\u0438\u0435 \u0435\u0441\u0442\u044c, \u0438, \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u0441\u0445\u0435\u043c\u0435 \u0434\u0430\u043d\u043d\u044b\u0445, \u043f\u0430\u0440\u0441\u0438\u0441\u0442\u0441\u044f \u043f\u0440\u0438 \u0441\u0447\u0438\u0442\u044b\u0432\u0430\u043d\u0438\u0438 \u043e\u043d \u043d\u0430\u043c\u043d\u043e\u0433\u043e \u0431\u044b\u0441\u0442\u0440\u0435\u0435. \u0418 \u043f\u0430\u043d\u0434\u0430\u0441 \u0432\u043f\u043e\u043b\u043d\u0435 \u0443\u043c\u0435\u0435\u0442 \u0441 \u043d\u0438\u043c \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c. \u0422\u043e\u043b\u044c\u043a\u043e \u0432\u043e\u0442 \u043d\u0435 \u0443\u043c\u0435\u0435\u0442 \u0447\u0438\u0442\u0430\u0442\u044c \u0438\u0445 \u0444\u0440\u0430\u0433\u043c\u0435\u043d\u0442\u0430\u043c\u0438. \u0427\u0442\u043e \u0436\u0435 \u0434\u0435\u043b\u0430\u0442\u044c?<\/p>\n<p>  <i> \u2014 \u0414\u0430\u0432\u0430\u0439 \u043f\u0440\u0438\u043a\u043e\u043b\u0435\u043c\u0441\u044f, \u0432\u043e\u0437\u044c\u043c\u0435\u043c <s>\u0431\u0430\u044f\u043d <\/s>\u0414\u0430\u0441\u043a \u0438 \u0443\u0441\u043a\u043e\u0440\u0438\u043c\u0441\u044f!<\/i><\/p>\n<p>  <a href=\"https:\/\/dask.org\/\">\u0414\u0430\u0441\u043a!<\/a> \u0417\u0430\u043c\u0435\u043d\u0438\u0442\u0435\u043b\u044c \u043f\u0430\u043d\u0434\u0430\u0441\u0430 \u0438\u0437 \u043a\u043e\u0440\u043e\u0431\u043a\u0438 \u0443\u043c\u0435\u044e\u0449\u0438\u0439 \u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0438\u0435 \u0444\u0430\u0439\u043b\u044b, \u0443\u043c\u0435\u044e\u0449\u0438\u0439 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u043e \u043d\u0430 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u044f\u0434\u0440\u0430\u0445 \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0449\u0438\u0439 \u043b\u0435\u043d\u0438\u0432\u044b\u0435 \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f. \u041a \u043c\u043e\u0435\u043c\u0443 \u0443\u0434\u0438\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u0440\u043e \u0414\u0430\u0441\u043a \u043d\u0430 \u0425\u0430\u0431\u0440\u0435 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0432\u0441\u0435\u0433\u043e 4 <a href=\"https:\/\/habr.com\/ru\/search\/?q=dask#h\">\u043f\u0443\u0431\u043b\u0438\u043a\u0430\u0446\u0438\u0438<\/a>.<\/p>\n<p>  \u0418\u0442\u0430\u043a, \u0431\u0435\u0440\u0435\u043c \u0434\u0430\u0441\u043a, \u0437\u0430\u0433\u043e\u043d\u044f\u0435\u043c \u0432 \u043d\u0435\u0433\u043e \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0439 csv \u0438 \u0441 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u043c\u0438 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0435\u043c\u0438 \u043f\u0435\u0440\u0435\u0433\u043e\u043d\u044f\u0435\u043c \u0432 \u043f\u0430\u0440\u043a\u0435\u0442. \u041f\u0440\u0438 \u0447\u0442\u0435\u043d\u0438\u0438 \u0434\u0430\u0441\u043a \u0440\u0443\u0433\u0430\u0435\u0442\u0441\u044f \u043d\u0430 \u043d\u0435\u043e\u0434\u043d\u043e\u0437\u043d\u0430\u0447\u043d\u043e\u0441\u0442\u044c \u0442\u0438\u043f\u043e\u0432 \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043a\u043e\u043b\u043e\u043d\u043a\u0430\u0445, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0437\u0430\u0434\u0430\u0435\u043c \u0438\u0445 \u044f\u0432\u043d\u043e (\u0434\u043b\u044f \u0447\u0438\u0441\u0442\u043e\u0442\u044b \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u044f \u0442\u043e \u0436\u0435 \u0441\u0430\u043c\u043e\u0435 \u0441\u0434\u0435\u043b\u0430\u043d\u043e \u0434\u043b\u044f \u043f\u0430\u043d\u0434\u0430\u0441\u0430, \u0432\u0440\u0435\u043c\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0432\u044b\u0448\u0435 \u0443\u0436\u0435 \u0441 \u0443\u0447\u0435\u0442\u043e\u043c \u044d\u0442\u043e\u0433\u043e \u0444\u0430\u043a\u0442\u043e\u0440\u0430, \u0441\u043b\u043e\u0432\u0430\u0440\u044c \u0441 dtypes \u0432\u044b\u0440\u0435\u0437\u0430\u043d \u0434\u043b\u044f \u043d\u0430\u0433\u043b\u044f\u0434\u043d\u043e\u0441\u0442\u0438 \u0438\u0437 \u0432\u0441\u0435\u0445 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432), \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u043e\u0435 \u043e\u043d \u0441\u0430\u043c. \u0414\u0430\u043b\u0435\u0435 \u0434\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u0434\u0435\u043b\u0430\u0435\u043c \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0438\u0435 \u0443\u043b\u0443\u0447\u0448\u0435\u043d\u0438\u044f \u0432 \u043f\u0430\u0440\u043a\u0435\u0442\u0435, \u0430 \u0438\u043c\u0435\u043d\u043d\u043e \u0441\u0442\u0430\u0440\u0430\u0435\u043c\u0441\u044f \u043f\u0440\u0438\u0432\u0435\u0441\u0442\u0438 \u0442\u0438\u043f\u044b \u0434\u0430\u043d\u043d\u043d\u044b\u0445 \u043a \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u043a\u043e\u043c\u043f\u0430\u043a\u0442\u043d\u044b\u043c, \u0437\u0430\u043c\u0435\u043d\u044f\u0435\u0442 \u043f\u0430\u0440\u0443 \u043a\u043e\u043b\u043e\u043d\u043e\u043a \u0441 \u0442\u0435\u043a\u0441\u0442\u043e\u0432\u044b\u043c\u0438 \u0434\u0430\/\u043d\u0435\u0442 \u043d\u0430 \u0431\u0443\u043b\u0435\u0432\u044b\u0435, \u0438 \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u043c \u0434\u0440\u0443\u0433\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u043a \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u044d\u043a\u043e\u043d\u043e\u043c\u043d\u044b\u043c \u0442\u0438\u043f\u0430\u043c (\u0434\u043b\u044f \u0447\u0438\u0441\u043b\u0430 \u0446\u0438\u043b\u0438\u043d\u0434\u0440\u043e\u0432 \u0434\u0432\u0438\u0433\u0430\u0442\u0435\u043b\u044f \u0442\u043e\u0447\u043d\u043e \u0445\u0432\u0430\u0442\u0438\u0442 uint8). \u0421\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u043c \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043f\u0430\u0440\u043a\u0435\u0442 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u0438 \u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0447\u0442\u043e \u0436\u0435 \u0443 \u043d\u0430\u0441 \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c.<\/p>\n<p>  \u041f\u0435\u0440\u0432\u043e\u0435 \u0447\u0442\u043e \u0440\u0430\u0434\u0443\u0435\u0442 \u043f\u0440\u0438 \u0440\u0430\u0431\u043e\u0442\u0435 \u0441 \u0414\u0430\u0441\u043a\u043e\u043c \u2014 \u043d\u0430\u043c \u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u043f\u0438\u0441\u0430\u0442\u044c \u043d\u0438\u0447\u0435\u0433\u043e \u043b\u0438\u0448\u043d\u0435\u0433\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u0438\u0437-\u0437\u0430 \u0442\u043e\u0433\u043e \u0447\u0442\u043e \u0443 \u043d\u0430\u0441 \u0442\u043e\u043b\u0441\u0442\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435. \u0415\u0441\u043b\u0438 \u043d\u0435 \u043e\u0431\u0440\u0430\u0449\u0430\u0442\u044c \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043d\u0430 \u0442\u043e, \u0447\u0442\u043e \u0438\u043c\u043f\u043e\u0440\u0442\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0434\u0430\u0441\u043a, \u0430 \u043d\u0435 \u043f\u0430\u043d\u0434\u0430\u0441 \u0432\u0441\u0435 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0442\u0430\u043a\u0436\u0435 \u043a\u0430\u043a \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u0432 \u043f\u0430\u043d\u0434\u0430\u0441\u0435 \u0444\u0430\u0439\u043b\u0430 \u043d\u0430 \u0441\u0442\u043e \u0441\u0442\u0440\u043e\u0447\u0435\u043a (\u043f\u043b\u044e\u0441 \u043f\u0430\u0440\u0430 \u0434\u0435\u043a\u043e\u0440\u0430\u0442\u0438\u0432\u043d\u044b\u0445 \u0441\u0432\u0438\u0441\u0442\u0435\u043b\u043e\u043a \u0434\u043b\u044f \u043f\u0440\u043e\u0444\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f).<\/p>\n<pre><code class=\"python\">def dask_query():     print('reading CSV file with dask')     with ProgressBar(), ResourceProfiler(dt=0.25) as rprof:         raw_data=dd.read_csv('C:\\Open_data\\RDW_full.CSV')         model_df=raw_data[raw_data['Merk'].isin(['TESLA MOTORS','TESLA'])]         print(model_df['Taxi indicator'].value_counts().compute())     rprof.visualize() <\/code><\/pre>\n<p>   \u0422\u0435\u043f\u0435\u0440\u044c \u0441\u0440\u0430\u0432\u043d\u0438\u043c \u0432\u043b\u0438\u044f\u043d\u0438\u0435 \u0438\u0441\u0445\u043e\u0434\u043d\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430 \u043d\u0430 \u0431\u044b\u0441\u0442\u0440\u043e\u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0435 \u043f\u0440\u0438 \u0440\u0430\u0431\u043e\u0442\u0435 \u0441 \u0434\u0430\u0441\u043a\u043e\u043c. \u041f\u0435\u0440\u0432\u044b\u043c \u0447\u0438\u0442\u0430\u0435\u043c \u0442\u043e\u0442 \u0436\u0435 \u0441\u0430\u043c\u044b\u0439 csv \u0444\u0430\u0439\u043b \u0447\u0442\u043e \u0438 \u043f\u0440\u0438 \u0440\u0430\u0431\u043e\u0442\u0435 \u0441 \u043f\u0430\u043d\u0434\u0430\u0441\u043e\u043c. \u0422\u0435 \u0436\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0434\u0432\u0435 \u043c\u0438\u043d\u0443\u0442\u044b \u0438 \u0434\u0432\u0430 \u0433\u0438\u0433\u0430 \u043f\u0430\u043c\u044f\u0442\u0438 (1:38 2096 \u041c\u0431). \u041a\u0430\u0437\u0430\u043b\u043e\u0441\u044c \u0431\u044b, \u0441\u0442\u043e\u0438\u043b\u043e \u043b\u0438 \u0432 \u043a\u0443\u0441\u0442\u0430\u0445 \u0446\u0435\u043b\u043e\u0432\u0430\u0442\u044c\u0441\u044f?<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/9a\/oy\/al\/9aoyalzd1a62bw31uivvy699xme.png\" alt=\"image\"><\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u0441\u043a\u0430\u0440\u043c\u043b\u0438\u0432\u0430\u0435\u043c \u0434\u0430\u0441\u043a\u0443 \u043d\u0435\u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 parquet \u0444\u0430\u0439\u043b. \u0417\u0430\u043f\u0440\u043e\u0441 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0430\u043b\u0441\u044f \u0437\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e 54 \u0441\u0435\u043a\u0443\u043d\u0434\u044b \u043f\u043e\u0442\u0440\u0435\u0431\u043b\u044f\u044f 1388 \u041c\u0431 \u043f\u0430\u043c\u044f\u0442\u0438, \u0430 \u0441\u0430\u043c \u0444\u0430\u0439\u043b \u0434\u043b\u044f \u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u0442\u0435\u043f\u0435\u0440\u044c \u0432 10 \u0440\u0430\u0437 \u043c\u0435\u043d\u044c\u0448\u0435 (\u043e\u043a\u043e\u043b\u043e 700 \u041c\u0431). \u0422\u0443\u0442 \u0443\u0436\u0435 \u0431\u043e\u043d\u0443\u0441\u044b \u0432\u0438\u0434\u043d\u044b \u0432\u044b\u043f\u0443\u043a\u043b\u043e. \u0417\u0430\u0433\u0440\u0443\u0437\u043a\u0430 CPU \u0432 \u0441\u043e\u0442\u043d\u0438 \u043f\u0440\u043e\u0446\u0435\u043d\u0442\u043e\u0432 \u2014 \u044d\u0442\u043e \u0440\u0430\u0441\u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u0438\u0432\u0430\u043d\u0438\u0435 \u043d\u0430 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u044f\u0434\u0435\u0440.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/1u\/sz\/_x\/1usz_xafa2hng3nogb2fbp9zspm.png\" alt=\"image\"><\/p>\n<p>  \u0420\u0430\u043d\u0435\u0435 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043f\u0430\u0440\u043a\u0435\u0442 \u0441 \u0447\u0443\u0442\u044c \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u043d\u044b\u043c\u0438 \u0442\u0438\u043f\u0430\u043c\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 \u0441\u0436\u0430\u0442\u043e\u043c \u0432\u0438\u0434\u0435 \u0432\u0441\u0435\u0433\u043e \u043d\u0430 1 \u041c\u0431 \u043c\u0435\u043d\u044c\u0448\u0435, \u0447\u0442\u043e \u0433\u043e\u0432\u043e\u0440\u0438\u0442 \u043e \u0442\u043e\u043c, \u0447\u0442\u043e \u0438 \u0431\u0435\u0437 \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u043e\u043a \u0432\u0441\u0435 \u0443\u0436\u0438\u043c\u0430\u0435\u0442\u0441\u044f \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u044d\u0444\u0444\u0435\u043a\u0442\u0438\u0432\u043d\u043e. \u041f\u0440\u0438\u0440\u043e\u0441\u0442 \u0432 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0442\u0430\u043a\u0436\u0435 \u043d\u0435 \u043e\u0441\u043e\u0431\u043e \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u0435\u043d. \u0417\u0430\u043f\u0440\u043e\u0441 \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 \u0442\u0435 \u0436\u0435 53 \u0441\u0435\u043a\u0443\u043d\u0434\u044b \u0438 \u0435\u0441\u0442 \u0447\u0443\u0442\u044c \u043c\u0435\u043d\u044c\u0448\u0435 \u043f\u0430\u043c\u044f\u0442\u0438 \u2014 1332 \u041c\u0431.<\/p>\n<p>  \u041f\u043e \u0438\u0442\u043e\u0433\u0430\u043c \u043d\u0430\u0448\u0438\u0445 \u0443\u043f\u0440\u0430\u0436\u043d\u0435\u043d\u0438\u0439 \u043c\u043e\u0436\u043d\u043e \u0441\u043a\u0430\u0437\u0430\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435:<\/p>\n<ul>\n<li>\u0415\u0441\u043b\u0438 \u0432\u0430\u0448\u0438 \u0434\u0430\u043d\u043d\u044b\u0435 \u043e\u0442\u043d\u043e\u0441\u044f\u0442\u0441\u044f \u043a \u00ab\u0442\u043e\u043b\u0441\u0442\u044b\u043c\u00bb \u0438 \u0432\u044b \u043f\u0440\u0438\u0432\u044b\u0447\u043d\u044b \u043a \u043f\u0430\u043d\u0434\u0430\u0441\u0443 \u2014 chunksize \u043f\u043e\u043c\u043e\u0436\u0435\u0442 \u043f\u0430\u043d\u0434\u0430\u0441\u0443 \u043f\u0435\u0440\u0435\u0432\u0430\u0440\u0438\u0442\u044c \u044d\u0442\u043e\u0442 \u043e\u0431\u044a\u0435\u043c, \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0431\u0443\u0434\u0435\u0442 \u0442\u0435\u0440\u043f\u0438\u043c\u043e\u0439. <\/li>\n<li>\u0415\u0441\u043b\u0438 \u0432\u0430\u043c \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u0432\u044b\u0436\u0430\u0442\u044c \u043f\u043e\u0431\u043e\u043b\u044c\u0448\u0435 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u0438, \u0441\u044a\u044d\u043a\u043e\u043d\u043e\u043c\u0438\u0442\u044c \u043c\u0435\u0441\u0442\u043e \u043f\u0440\u0438 \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u0438 \u0438 \u0432\u0430\u0441 \u043d\u0435 \u0434\u0435\u0440\u0436\u0438\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0438\u043c\u0435\u043d\u043d\u043e \u043f\u0430\u043d\u0434\u0430\u0441\u0430, \u0442\u043e \u0434\u0430\u0441\u043a \u0441 \u043f\u0430\u0440\u043a\u0435\u0442\u043e\u043c \u044d\u0442\u043e \u043d\u0435\u043f\u043b\u043e\u0445\u0430\u044f \u0441\u0432\u044f\u0437\u043a\u0430. <\/li>\n<\/ul>\n<p>  \u041d\u0430\u043f\u043e\u0441\u043b\u0435\u0434\u043e\u043a \u043e \u043b\u0435\u043d\u0438\u0432\u044b\u0445 \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f\u0445. \u041e\u0434\u043d\u0430 \u0438\u0437 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u0435\u0439 \u0434\u0430\u0441\u043a\u0430 \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u043e\u043d \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u043b\u0435\u043d\u0438\u0432\u044b\u0435 \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f, \u0442\u043e \u0435\u0441\u0442\u044c \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0432\u043e\u0434\u044f\u0442\u0441\u044f \u043d\u0435 \u0441\u0440\u0430\u0437\u0443 \u043a\u0430\u043a \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u043d\u0438 \u0432\u0441\u0442\u0440\u0435\u0447\u0430\u044e\u0442\u0441\u044f \u0432 \u043a\u043e\u0434\u0435, \u0430 \u043a\u043e\u0433\u0434\u0430 \u043e\u043d\u0438 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b \u0438\u043b\u0438 \u043a\u043e\u0433\u0434\u0430 \u0432\u044b \u044d\u0442\u043e \u044f\u0432\u043d\u043e \u0437\u0430\u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043b\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0432 \u043c\u0435\u0442\u043e\u0434 compute. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0432 \u043d\u0430\u0448\u0435\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0434\u0430\u0441\u043a \u043d\u0435 \u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u0442 \u0432\u0441\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0432 \u043f\u0430\u043c\u044f\u0442\u044c, \u043a\u043e\u0433\u0434\u0430 \u043c\u044b \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u0441\u0447\u0438\u0442\u0430\u0442\u044c \u0444\u0430\u0439\u043b. \u0421\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u0442 \u043e\u043d \u0438\u0445 \u043f\u043e\u0437\u0436\u0435, \u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u0442\u0435 \u043a\u043e\u043b\u043e\u043d\u043a\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043e\u0442\u043d\u043e\u0441\u044f\u0442\u0441\u044f \u043a \u0437\u0430\u043f\u0440\u043e\u0441\u0443. <\/p>\n<p>  \u0412 \u044d\u0442\u043e\u043c \u043b\u0435\u0433\u043a\u043e \u0443\u0431\u0435\u0434\u0438\u0442\u044c\u0441\u044f \u043d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u0435. \u0411\u0435\u0440\u0435\u043c \u043f\u0440\u0435\u0434\u0432\u0430\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043e\u0442\u0444\u0438\u043b\u044c\u0442\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0444\u0430\u0439\u043b, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043c\u044b \u043e\u0441\u0442\u0430\u0432\u0438\u043b\u0438 \u0442\u043e\u043b\u044c\u043a\u043e 12 \u043a\u043e\u043b\u043e\u043d\u043e\u043a \u0438\u0437 \u043d\u0430\u0447\u0430\u043b\u044c\u043d\u044b\u0445 64, \u0441\u0436\u0430\u0442\u044b\u0439 \u043f\u0430\u0440\u043a\u0435\u0442 \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 203 \u041c\u0431. \u0415\u0441\u043b\u0438 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u043d\u0430 \u043d\u0435\u043c \u043d\u0430\u0448 \u043e\u0431\u044b\u0447\u043d\u044b\u0439 \u0437\u0430\u043f\u0440\u043e\u0441, \u0442\u043e \u043e\u043d \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u0441\u044f \u0437\u0430 8.8 \u0441\u0435\u043a\u0443\u043d\u0434\u044b, \u0430 \u043f\u0438\u043a\u043e\u0432\u043e\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u0430\u043c\u044f\u0442\u0438 \u0441\u043e\u0441\u0442\u0430\u0432\u0438\u0442 \u043e\u043a\u043e\u043b\u043e 300 \u041c\u0431 \u0447\u0442\u043e \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0432\u0443\u0435\u0442 \u0434\u0435\u0441\u044f\u0442\u043e\u0439 \u0447\u0430\u0441\u0442\u0438 \u043e\u0442 \u0440\u0430\u0437\u0436\u0430\u0442\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430 \u0435\u0441\u043b\u0438 \u043f\u0435\u0440\u0435\u0433\u043d\u0430\u0442\u044c \u0435\u0433\u043e \u0432 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 csv. <\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/jg\/we\/bq\/jgwebqzk7enoz6z6rwiearbofgs.png\" alt=\"image\"><\/p>\n<p>  \u0415\u0441\u043b\u0438 \u0436\u0435 \u043c\u044b \u0432 \u044f\u0432\u043d\u043e\u043c \u0432\u0438\u0434\u0435 \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u0435\u043c \u0441\u0447\u0438\u0442\u0430\u0442\u044c \u0444\u0430\u0439\u043b, \u0430 \u043f\u043e\u0442\u043e\u043c \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0437\u0430\u043f\u0440\u043e\u0441, \u0442\u043e \u0440\u0430\u0441\u0445\u043e\u0434 \u043f\u0430\u043c\u044f\u0442\u0438 \u0441\u043e\u0441\u0442\u0430\u0432\u0438\u0442 \u043f\u043e\u0447\u0442\u0438 \u0432 10 \u0440\u0430\u0437 \u0431\u043e\u043b\u044c\u0448\u0435. \u0418\u0437\u043c\u0435\u043d\u0438\u043c \u043d\u0435\u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0430\u0448\u0443 \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u044f\u0432\u043d\u044b\u043c \u0442\u0440\u0435\u0431\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0447\u0442\u0435\u043d\u0438\u044f \u0444\u0430\u0439\u043b\u0430:<\/p>\n<pre><code class=\"python\">def dask_query():     print('reading parquet file with dask')     with ProgressBar(), ResourceProfiler(dt=0.25) as rprof:         raw_data=dd.read_parquet('C:\\Open_data\\RDW_filtered.parquet' ).compute()         model_df=raw_data[raw_data['Merk'].isin(['TESLA MOTORS','TESLA'])]         #print(model_df.head())         print(model_df['Taxi indicator'].value_counts())     rprof.visualize() <\/code><\/pre>\n<p>  \u0418 \u0432\u043e\u0442 \u0447\u0442\u043e \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c, 10.5 \u0441\u0435\u043a\u0443\u043d\u0434 \u0438 3568 \u041c\u0431 \u043f\u0430\u043c\u044f\u0442\u0438 (!)<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/w5\/5w\/aj\/w55wajaohsdjyevm1hxbgpvns2a.png\" alt=\"image\"><\/p>\n<p>  \u0412 \u043e\u0447\u0435\u0440\u0435\u0434\u043d\u043e\u0439 \u0440\u0430\u0437 \u0443\u0431\u0435\u0436\u0434\u0430\u0435\u043c\u0441\u044f \u0447\u0442\u043e \u0434\u0430\u0441\u043a \u2014 \u043a\u043e\u043c\u043f\u0435\u0442\u0435\u043d\u0442\u043d\u043e \u0441\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0441\u043e \u0441\u0432\u043e\u0438\u043c\u0438 \u0437\u0430\u0434\u0430\u0447\u0430\u043c\u0438 \u0441\u0430\u043c, \u0438 \u043b\u0438\u0448\u043d\u0438\u0439 \u0440\u0430\u0437 \u043b\u0435\u0437\u0442\u044c \u043a \u043d\u0435\u043c\u0443 \u0441 \u043c\u0438\u043a\u0440\u043e\u043c\u0435\u043d\u0434\u0436\u043c\u0435\u043d\u0442\u043e\u043c \u043d\u0435\u0442 \u043e\u0441\u043e\u0431\u043e\u0433\u043e \u0441\u043c\u044b\u0441\u043b\u0430.<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/488594\/\"> https:\/\/habr.com\/ru\/post\/488594\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text-html\" id=\"post-content-body\" data-io-article-url=\"https:\/\/habr.com\/ru\/post\/488594\/\">\u0412 \u044d\u0442\u043e\u0439 \u0437\u0430\u043c\u0435\u0442\u043a\u0435 \u044f \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443 \u043e \u043f\u0430\u0440\u0435 \u043f\u0440\u043e\u0441\u0442\u044b\u0445 \u043f\u0440\u0438\u0435\u043c\u043e\u0432, \u043f\u043e\u043b\u0435\u0437\u043d\u044b\u0445 \u043f\u0440\u0438 \u0440\u0430\u0431\u043e\u0442\u0435 \u0441 \u0434\u0430\u043d\u043d\u044b\u043c\u0438, \u043d\u0435 \u043f\u043e\u043c\u0435\u0449\u0430\u044e\u0449\u0438\u043c\u0438\u0441\u044f \u0432 \u043f\u0430\u043c\u044f\u0442\u044c \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u044b, \u043d\u043e \u0432\u0441\u0435 \u0435\u0449\u0435 \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u043c\u0435\u043b\u043a\u0438\u043c\u0438 \u0447\u0442\u043e\u0431\u044b \u043d\u0430\u0437\u044b\u0432\u0430\u0442\u044c\u0441\u044f \u0411\u043e\u043b\u044c\u0448\u0438\u043c\u0438. \u0421\u043b\u0435\u0434\u0443\u044f \u0430\u043d\u0433\u043b\u043e\u044f\u0437\u044b\u0447\u043d\u043e\u0439 \u0430\u043d\u0430\u043b\u043e\u0433\u0438\u0438 (large but not big), \u0431\u0443\u0434\u0435\u043c \u043d\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u044d\u0442\u0438 \u0434\u0430\u043d\u043d\u044b\u0435 \u0442\u043e\u043b\u0441\u0442\u044b\u043c\u0438. \u0420\u0435\u0447\u044c \u0438\u0434\u0435\u0442 \u043e \u0440\u0430\u0437\u043c\u0435\u0440\u0430\u0445 \u0432 \u0435\u0434\u0438\u043d\u0438\u0446\u044b \u0438 \u0434\u0435\u0441\u044f\u0442\u043a\u0438 \u0433\u0438\u0433\u0430\u0431\u0430\u0439\u0442.<\/p>\n<p>  [\u0414\u0438\u0441\u043a\u043b\u0435\u0439\u043c\u0435\u0440\u044a]\u0415\u0441\u043b\u0438 \u0432\u044b \u043b\u044e\u0431\u0438\u0442\u0435 SQL \u0432\u0441\u0435 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u043e\u0435 \u043d\u0438\u0436\u0435 \u043c\u043e\u0436\u0435\u0442 \u0432\u044b\u0437\u0432\u0430\u0442\u044c \u0432 \u0432\u0430\u0441 \u044f\u0440\u043a\u0438\u0435, \u0441\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e, \u043d\u0435\u0433\u0430\u0442\u0438\u0432\u043d\u044b\u0435 \u044d\u043c\u043e\u0446\u0438\u0438, \u0432 \u0413\u043e\u043b\u043b\u0430\u043d\u0434\u0438\u0438 49262 \u0422\u0435\u0441\u043b\u044b, \u0438\u0437 \u043d\u0438\u0445 427 \u0442\u0430\u043a\u0441\u0438, \u0434\u0430\u043b\u044c\u0448\u0435 \u043b\u0443\u0447\u0448\u0435 \u043d\u0435 \u0447\u0438\u0442\u0430\u0439\u0442\u0435 [\/\u0414\u0438\u0441\u043a\u043b\u0435\u0439\u043c\u0435\u0440\u044a].<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/webt\/-s\/ac\/gl\/-sacgl0hwmynxnpiov5s_coofa4.png\" alt=\"image\">  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-298843","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/298843","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=298843"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/298843\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=298843"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=298843"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=298843"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}