I am using the following code to export the results of my spatial dataframe to a new feature layer:
lyr = sdfToPublish.spatial.to_featurelayer('Analysis_Export', folder='Export Folder')
This runs beautifully, however it first coverts it to a .shp then publishes that as a service. The problem there is that .shp limit the field lengths to 10 characters, thus truncating our thoughtfully designed (a.k.a. very long) field names. Is there a way to specify another type that does not truncate the length.