I want to read a DXF file. Do some geoprocessing and export it again in the DXF format without converting it to shapefile. I am using GeoPandas for reading and processing. It is happening successfully. But while exporting, it's not coming in DXF format. It is exporting in shapefile.
I have given filename extension as .dxf and driver = 'DXF' I tried using ezdxf but it gives an error of paperspace.
What can be the possible solution of exporting it in DXF format or DWG format using python?