This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| data:data_analysis_manual:read_catalog_python [2022/09/21 11:57] – fix function reading uio csv catalog (it was reading the txt catalog before) gabriel pelouze | data:data_analysis_manual:read_catalog_python [2024/03/29 13:11] (current) – Page is deprecated eric buchlin | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== How to read and use the UiO FITS files catalog in Python ====== | ====== How to read and use the UiO FITS files catalog in Python ====== | ||
| + | |||
| + | <note warning> | ||
| ===== CSV catalog (new, recommended) ===== | ===== CSV catalog (new, recommended) ===== | ||
| Line 33: | Line 35: | ||
| sys.exit(1) | sys.exit(1) | ||
| date_columns = [' | date_columns = [' | ||
| - | df = pd.csv(cat_file, parse_dates=date_columns, | + | df = pd.read_csv(cat_file, parse_dates=date_columns, |
| return df | return df | ||
| </ | </ | ||