Skip to main content
Solved

How to expose a large amount of attributes created inside a PythonCaller?

  • July 18, 2019
  • 2 replies
  • 78 views

I have a process inside a PythonCaller that converts a long pandas dataframe into a wide dataframe that when output, has around 200 columns. The dataframes are transformed back into an fme feature for output. Now I need to expose all 200 column names but need to avoid doing this manually. Is there any way to do this from within the PythonCaller?

Best answer by david_r

If you could write a CSV file (e.g. from your Python script) with all the attribute names, then you can import this list into the AttributeExposer.

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.

2 replies

david_r
Celebrity
  • 8394 replies
  • Best Answer
  • July 18, 2019

If you could write a CSV file (e.g. from your Python script) with all the attribute names, then you can import this list into the AttributeExposer.


  • Author
  • 1 reply
  • July 19, 2019

If you could write a CSV file (e.g. from your Python script) with all the attribute names, then you can import this list into the AttributeExposer.

Thank you @david_r