Skip to main content
Solved

Transformation or Python Script?

  • June 18, 2021
  • 4 replies
  • 15 views

plynn
Contributor
Forum|alt.badge.img+10
  • Contributor
  • 9 replies

I have two things that I am trying to accomplish with the current feature/attributes that I have joined. For each row of data, I need to write out 5 new rows. Also, in the new rows, some of the column values are the column names of the input feature.

Here is an example: (Attribute Name: Attribute Value)

input: ASSETNUM: 12345, VLVCOND:Good, TRNSOPEN:10, OPENDRTN: Clockwise, STRUCTUR:No, SURCOVER: Blue, INSPECTOR:Joe Smith

Output: ASSETNUM:12345, METERNAME:VLVCOND, OBSERVATION:Good, INSPECTOR:Joe Smith

ASSETNUM:12345, METERNAME:TRNSOPEN, OBSERVATION:10, INSPECTOR:Joe Smith

ASSETNUM:12345, METERNAME:OPENDRTN,OBSERVATION:Clockwise, INSPECTOR:Joe Smith

ASSETNUM:12345, METERNAME:STRUCTUR, OBSERVATION:No, INSPECTOR:Joe Smith

ASSETNUM:12345, METERNAME:SURCOVER, OBSERVATION:Blue, INSPECTOR:Joe Smith

 

Any help would be greatly appreciated.

Thanks.

Best answer by ebygomm

This is the sort of workflow you would need

Capture

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

4 replies

ebygomm
Influencer
Forum|alt.badge.img+44
  • Influencer
  • 3427 replies
  • June 18, 2021

You should be able to do this with an AttributeExploder

 

Is your input text as per the example, or do you have a feature that has attributes ASSETNUM, VLVCOND etc. like this

Capture


plynn
Contributor
Forum|alt.badge.img+10
  • Author
  • Contributor
  • 9 replies
  • June 18, 2021

You should be able to do this with an AttributeExploder

 

Is your input text as per the example, or do you have a feature that has attributes ASSETNUM, VLVCOND etc. like this

Capture

The input is a feature that has attributes like you have it shown above.


ebygomm
Influencer
Forum|alt.badge.img+44
  • Influencer
  • 3427 replies
  • Best Answer
  • June 18, 2021

This is the sort of workflow you would need

Capture


plynn
Contributor
Forum|alt.badge.img+10
  • Author
  • Contributor
  • 9 replies
  • June 18, 2021

This is the sort of workflow you would need

Capture

That worked perfectly. Thank you so much for your help.