Compare commits
1 Commits
9d65d4a862
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 7a4de947c6 |
@@ -8,7 +8,6 @@ from datetime import datetime
|
||||
from typing import Any
|
||||
|
||||
import pandas as pd
|
||||
|
||||
from utils import crud, filters, parser, stats, utils, visuals
|
||||
|
||||
HEADER = """=== Terramotos ==="""
|
||||
@@ -295,7 +294,7 @@ def _prettify_event(df: pd.DataFrame) -> None:
|
||||
# preambleInfo = df.drop_duplicates(subset="ID", keep="first")
|
||||
# stations = df[["Estacao", "Componente", "Tipo Onda", "Amplitude"]]
|
||||
info = df.drop_duplicates(subset="Data", keep="first")
|
||||
data = datetime.fromisoformat(info.Data.values[0]).strftime("%c")
|
||||
data = pd.to_datetime(info.Data.values[0]).isoformat()
|
||||
print(
|
||||
f"Região: {info['Regiao'].values[0]}\nData: {data}\nLatitude: {info['Latitude'].values[0]}\nLongitude: {info['Longitude'].values[0]}"
|
||||
+ f"\nProfundidade: {info['Profundidade'].values[0]}\nTipo de evento: {info['Tipo Evento'].values[0]}\n"
|
||||
|
||||
Reference in New Issue
Block a user