Skip to content
Snippets Groups Projects
Commit bd71e4e0 authored by pascal.mouquet_ird.fr's avatar pascal.mouquet_ird.fr
Browse files

time_series extraction changed fid to numeric for a better sorting in the csv output

parent 775c6e44
No related branches found
No related tags found
No related merge requests found
......@@ -393,6 +393,7 @@ class TimeSeries:
self._date_min,
self._date_max)
#~ df.sort_values(by=['fid', 'date', 'count', 'tile']).reindex(columns=(list_order + [a for a in df.columns if a not in list_order]), copy=False).to_csv(str(csv_path))
df['fid'] = pd.to_numeric(df['fid'])
dg = df.sort_values(by=['fid', 'date', 'count', 'std'], ascending=[True, True, True, False]).\
reindex(columns=(list_order + [a for a in df.columns if a not in list_order]), copy=False).\
reset_index().\
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment