Reading a CSV file into #Python #Pandas, and the file uses "-" or "." instead of NaN or a blank cell? Have Pandas treat those as NaN by passing na_values (and a list of strings) to read_csv: df = pd.read_csv(filename, na_values=['-', '.'])
0 reposts1 like