How to clean CSV file for a coordinate system using pandas?
问题 I wanted to create a program to convert CSV files to DXF(AutoCAD), but the CSV file sometimes comes with a header and sometimes no and there are cells that cannot be empty such as coordinates, and I also noticed that after excluding some of the inputs the value is nan or NaN and it was necessary to get rid of them so I offer you my answer and please share your opinions to implement a better method. sample input output 回答1: solution import string import pandas def pandas_clean_csv(csv_file): "