BiSeNet icon indicating copy to clipboard operation
BiSeNet copied to clipboard

FileNotFoundError: [Errno 2] No such file or directory: '/PI_Blackfriars_Sys_1_4/Room_34_SetTempHeat.csv'

Open atulmishra835 opened this issue 5 years ago • 1 comments


FileNotFoundError Traceback (most recent call last) in 5 #df 6 for site_name in df['SiteName'].unique(): ----> 7 df[df['SiteName'] == site_name].to_csv('{}.csv'.format(site_name))

~\AppData\Local\Continuum\anaconda3\lib\site-packages\pandas\core\generic.py in to_csv(self, path_or_buf, sep, na_rep, float_format, columns, header, index, index_label, mode, encoding, compression, quoting, quotechar, line_terminator, chunksize, tupleize_cols, date_format, doublequote, escapechar, decimal) 3018 doublequote=doublequote, 3019 escapechar=escapechar, decimal=decimal) -> 3020 formatter.save() 3021 3022 if path_or_buf is None:

~\AppData\Local\Continuum\anaconda3\lib\site-packages\pandas\io\formats\csvs.py in save(self) 155 f, handles = _get_handle(self.path_or_buf, self.mode, 156 encoding=self.encoding, --> 157 compression=self.compression) 158 close = True 159

~\AppData\Local\Continuum\anaconda3\lib\site-packages\pandas\io\common.py in _get_handle(path_or_buf, mode, encoding, compression, memory_map, is_text) 422 elif encoding: 423 # Python 3 and encoding --> 424 f = open(path_or_buf, mode, encoding=encoding, newline="") 425 elif is_text: 426 # Python 3 and no explicit encoding

FileNotFoundError: [Errno 2] No such file or directory: '/PI_Blackfriars_Sys_1_4/Room_34_SetTempHeat.csv'

can you please tell me why this is happening and how to solve this problem

atulmishra835 avatar Aug 22 '20 10:08 atulmishra835

i also have this problem

ChenJiafei0722 avatar Mar 03 '23 07:03 ChenJiafei0722