Skip to main content
Solved

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


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.

View original
Did this help you find an answer to your question?

2 replies

david_r
Celebrity
  • 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
  • July 19, 2019
david_r wrote:

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


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings