Problems with numpy + csv
Data: file with the .npy numpy mass (text data)
The task is to translate it into .csv format.
Problem: after storing np.savetxt(), it will not be possible to restore the file from the csv file - a error will come out:
ValueError: Wrong number of columns at line 9 (in fact, if you use different separators, the number of line may change)
I’ve checked 25 times that the column is exactly as much as it should be. Also, Open Office opens such a csv file without any problems and does not shame - that is, it has no problems with the number of columns.
If my eyes are mistaken, I don’t consider anything.
I have already tried different separators, even the most exotic (to exclude the possibility of the appearance of extra columns due to the appearance in the text of the separator symbol.
Nothing helps.
I'm crying for the code that will save the output mass in the csv and then this csv will be downloaded without mistakes by the method np.loadtxt()
by P.S. When saving the method np.savetxt(), I recommend using the parameters:encoding='utf-8' and fmt='%s'
Applications 1
Client's review of cooperation with Yevgeny N.
Problems with numpy + csvThank you for the quick and professional solution to the problem. I recommend it as a great specialist.
Freelancer's review of cooperation with Aleksey Fedchishin
Problems with numpy + csvEverything is good. I recommend cooperation.
-
Добрый день, задание ещё актуально?
-
deleted by moderator
-
Current freelance projects in the category Desktop Apps
Development of custom software (Android application + CMS) for SUNMI K2 self-service kiosks (Fast food)
23 USD
We are looking for an experienced team or a Middle/Senior Android developer (possibly with Full-stack skills) to create proprietary software for self-service kiosks for a fast food retail chain. Currently, our terminals operate on a ready-made cloud integrator, but we are… Content Management Systems, Desktop Apps ∙ 11 hours 15 minutes back ∙ 13 proposals |
It is necessary to migrate the current working program from FoxPro to C#.Hello everyone! We have a program in FoxPro (it has several modules, it's an accounting program), we have the source code of the program, and if necessary, we can consult with people who support the current program. What needs to be done: 1. Analyze how everything works,… C#, Desktop Apps ∙ 5 days 19 hours back ∙ 18 proposals |
About the Master Program "KONSTRUCTOR"
4193 USD
We are looking for a very experienced C++ developer to modernize existing software (master program). The program is responsible for creating derivative software representing audio-visual sessions of psychological correction. The current version is written in pure WinAPI (Visual… C & C++, Desktop Apps ∙ 8 days 7 hours back ∙ 19 proposals |
ODOO Enterprise setup for constructionНеобхідно побудувати картки та налаштувати зручний імпорт, інтеграцію з ЕДО і загалом Workflow ODOO Компанія займається системною інтеграцією: маємо поставки обладнання В2В або з прямою маржинальністю, або з рібейтами в подальшому. Крім того, ведемо будівельні роботи на об'єктах… Enterprise Resource Planning (ERP), Desktop Apps ∙ 8 days 17 hours back ∙ 7 proposals |
Add the ability to work with Nova Poshta and Delivery in BAS Small Business 1.6.21.1
113 USD
Implement if possible through an extension. Need to upload directories and create a shipping document. Filling in data for shipment in the Customer Order. Then, based on the order, a shipping document is created. There will be several accounts. Ability to link an account to a… Desktop Apps, Client Management & CRM ∙ 12 days 13 hours back ∙ 19 proposals |