I want to read a csv file by using obspy.read_events(‘./query.csv’), but it found that there is no folder named ‘csv’ in obspy/io folder, my obspy version is 1.4.1, why?
These file formats were added after the 1.4.x release chain and will be in the next upcoming major release 1.5.0, which will hopefully happen before end of this year.
If you need it you would have to install the master branch, see e.g. here: Developer Installation · obspy/obspy Wiki · GitHub
For ObsPy<1.5 you can anyway install the CSV plugin:
pip install obspycsv