Closed hemanu closed 6 years ago
It appears to be an issue with reading csv files using pandas. Please try updating to the most recent version of pandas with the command.
pip install pandas --upgrade
I also will probably be dropping python 2 support as I only use python 3 now.
Thanks for replying, I'm using python 27, I'm going to update the pandas version
Ok according to what you suggested, the error no longer appears, thanks for your support
I am trying to use your script, following the steps:
but when trying to assign it to the variable log = ptr.Log (las_file_path), the following error message appears:
Traceback (most recent call last): File "C:\Python27\wolfcamp_single.py", line 42, in
log = ptr.Log(las_file_path)
File "C:\Python27\lib\site-packages\petropy\log.py", line 55, in init
self.fluid_properties_parameters_from_csv()
File "C:\Python27\lib\site-packages\petropy\log.py", line 333, in fluid_properties_parameters_from_csv
param_df.to_dict(orient = 'index')
File "C:\Python27\lib\site-packages\pandas\util\decorators.py", line 88, in wrapper
return func(*args, **kwargs)
File "C:\Python27\lib\site-packages\pandas\core\frame.py", line 712, in to_dict
raise ValueError("orient '%s' not understood" % orient)
ValueError: orient 'index' not understood
that does not allow me to continue, could you please tell me what step I am not taking into account?