ENH: assign None to connection if csv file is used