Solved

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

  • 18 July 2019
  • 2 replies
  • 17 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?

icon

Best answer by david_r 18 July 2019, 09:09

View original

2 replies

Userlevel 4

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.

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