knime pandas dataframe

Solutions on MaxInterview for knime pandas dataframe by the best coders in the world

showing results for - "knime pandas dataframe"
Pia
01 May 2018
1import re
2import pandas as pd
3
4output_table = pd.DataFrame(columns=('ID','username','CREATED','MODIFIED','CONTENT','TYPE','NAME','CDS_FIELD_ID'))
5cds_ids = pd.DataFrame(columns=('ID','CDS_FIELD_ID'))
6for theID, username,theCreated,theModified,theContent,theType,theName in zip(input_table['ID'],input_table['USER521'],input_table['CREATED'],input_table['MODIFIED'],input_table['CONTENT'],input_table['TYPE'],input_table['NAME']):
7	idSeries = re.findall(r'FACT\/([0-9]*)',theContent)
8	print idSeries
9	for theCDS in enumerate(idSeries):
10		print theID,username,theCreated,theModified,theContent,theType,theName,theCDS[1]
11		thisRow = pd.DataFrame([theID,username,theCreated,theModified,theType,theName,theCDS[1]])
12		output_table.append(thisRow)
13print output_table
14
similar questions
queries leading to this page
knime pandas dataframe