Я токенизировал свои столбцы из фрейма данных. Я токенизировал свой фрейм данных:
for col_name in ['WORK_ACTIVITY', 'WORK_ACTIVITY_SUM', 'WORK_ACTIVITY_SECOND', 'WORK_ACTIVITY_SCEOND_SUM', 'COMPUTER', 'DEVELOPMENT_AND_DESIGN', 'MANAGEMENT_SALES', 'RESEARCH_AND_DEVELOPMENT', 'RESEARCH_DEVE_TEACHING', 'ACTIVITY_RESEARCH', 'ACTIVITY_TEACHING', 'WORK_DEVELOPMENT', 'WORK_DESIGN', 'WORK_EMPLOYEE_RELATIONS', 'WORK_MANAGEMENT_ADMIN', 'WORK_PRODUCTION', 'WORK_QUALITY_MANAGEMENT', 'WORK_SALES_MARKETING', 'WORK_PROFESSIONAL_SERVICES', 'WORK_TEACHING', 'WORK_FINANCE', 'WORK_APPLIED_RESEARCH', 'WORK_RESEARCH', 'WORK_COMPUTER_APPLICATIONS', 'SUPERVISORY_WORK']:
workingdatameuse[col_name] = workingdatameuse[col_name].apply(word_tokenize)
Столбцы токенизированы, но есть пробелы.
WORK_ACTIVITY WORK_ACTIVITY_SUM WORK_ACTIVITY_SECOND WORK_ACTIVITY_SCEOND_SUM COMPUTER DEVELOPMENT_AND_DESIGN MANAGEMENT_SALES RESEARCH_AND_DEVELOPMENT RESEARCH_DEVE_TEACHING ACTIVITY_RESEARCH ACTIVITY_TEACHING WORK_DEVELOPMENT WORK_DESIGN WORK_EMPLOYEE_RELATIONS WORK_MANAGEMENT_ADMIN WORK_PRODUCTION WORK_QUALITY_MANAGEMENT WORK_SALES_MARKETING WORK_PROFESSIONAL_SERVICES WORK_TEACHING WORK_FINANCE WORK_APPLIED_RESEARCH WORK_RESEARCH WORK_COMPUTER_APPLICATIONS SUPERVISORY_WORK
результаты:
0 20901QY86 [Applied, research, ,] [Research, and, Development, ,] [Management, and, Administration, ,] [Management, and, Administration, ,] [] [] [management, ,, sales, ,] [research, ,, development, ,] [research, ,, development, ,, teaching, ,] [research, ,] [] [] [] [] [management, ,, adminstration, ,] [] [] [] [professional, services, ,] [teaching, ,, training, ,] [] [] [research, ,] [] [supervisory, work, ,]
1 20902AN23 [Management, and, Administration, ,] [Management, and, Administration, ,] [Computer, applications, ,, programming, ,, sy... [Research, and, Development, ,] [] [development, ,, design, ,] [management, ,, sales, ,] [research, ,, development, ,] [research, ,, development, ,, teaching, ,] [] [] [development, ,] [design, ,] [employee, relations, ,] [management, ,, adminstration, ,] [] [quality, ,, management, ,] [] [] [] [] [applied, research, ,] [research, ,] [computer, applications, ,] [supervisory, work, ,]
4 20902TH37 [Applied, research, ,] [Research, and, Development, ,] [Management, and, Administration, ,] [Management, and, Administration, ,] [] [] [management, ,, sales, ,] [research, ,, development, ,] [research, ,, development, ,, teaching, ,] [research, ,] [] [] [] [] [management, ,, adminstration, ,] [] [] [] [] [teaching, ,, training, ,] [] [applied, research, ,] [research, ,] [] []
5 20902VN70 [Quality, or, productivity, management, ,] [Management, and, Administration, ,] [Management, and, Administration, ,] [Management, and, Administration, ,] [] [] [management, ,, sales, ,] [] [] [] [] [] [design, ,] [] [management, ,, adminstration, ,] [] [quality, ,, management, ,] [] [] [teaching, ,, training, ,] [] [applied, research, ,] [] [] []
14 20905GV97 [Basic, research, ,] [Research, and, Development, ,] [Management, and, Administration, ,] [Management, and,
Как удалить пробелы в моем столбце токенизированного фрейма данных?
1