PYield 0.36.1__tar.gz → 0.36.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pyield-0.36.1 → pyield-0.36.2}/PKG-INFO +1 -1
- pyield-0.36.2/pyield/__about__.py +1 -0
- {pyield-0.36.1 → pyield-0.36.2}/pyield/anbima/imaq.py +9 -2
- pyield-0.36.1/pyield/__about__.py +0 -1
- {pyield-0.36.1 → pyield-0.36.2}/.gitignore +0 -0
- {pyield-0.36.1 → pyield-0.36.2}/LICENSE +0 -0
- {pyield-0.36.1 → pyield-0.36.2}/README.md +0 -0
- {pyield-0.36.1 → pyield-0.36.2}/pyield/__init__.py +0 -0
- {pyield-0.36.1 → pyield-0.36.2}/pyield/anbima/__init__.py +0 -0
- {pyield-0.36.1 → pyield-0.36.2}/pyield/anbima/ettj.py +0 -0
- {pyield-0.36.1 → pyield-0.36.2}/pyield/anbima/ima.py +0 -0
- {pyield-0.36.1 → pyield-0.36.2}/pyield/anbima/ipca.py +0 -0
- {pyield-0.36.1 → pyield-0.36.2}/pyield/anbima/tpf.py +0 -0
- {pyield-0.36.1 → pyield-0.36.2}/pyield/b3/__init__.py +0 -0
- {pyield-0.36.1 → pyield-0.36.2}/pyield/b3/di1.py +0 -0
- {pyield-0.36.1 → pyield-0.36.2}/pyield/b3/di_over.py +0 -0
- {pyield-0.36.1 → pyield-0.36.2}/pyield/b3/futures/__init__.py +0 -0
- {pyield-0.36.1 → pyield-0.36.2}/pyield/b3/futures/common.py +0 -0
- {pyield-0.36.1 → pyield-0.36.2}/pyield/b3/futures/historical.py +0 -0
- {pyield-0.36.1 → pyield-0.36.2}/pyield/b3/futures/intraday.py +0 -0
- {pyield-0.36.1 → pyield-0.36.2}/pyield/b3/futures/xml.py +0 -0
- {pyield-0.36.1 → pyield-0.36.2}/pyield/bc/__init__.py +0 -0
- {pyield-0.36.1 → pyield-0.36.2}/pyield/bc/auction.py +0 -0
- {pyield-0.36.1 → pyield-0.36.2}/pyield/bc/bcdata.py +0 -0
- {pyield-0.36.1 → pyield-0.36.2}/pyield/bc/ptax.py +0 -0
- {pyield-0.36.1 → pyield-0.36.2}/pyield/bc/repo.py +0 -0
- {pyield-0.36.1 → pyield-0.36.2}/pyield/bc/trades_intraday.py +0 -0
- {pyield-0.36.1 → pyield-0.36.2}/pyield/bc/trades_monthly.py +0 -0
- {pyield-0.36.1 → pyield-0.36.2}/pyield/bc/vna.py +0 -0
- {pyield-0.36.1 → pyield-0.36.2}/pyield/bday.py +0 -0
- {pyield-0.36.1 → pyield-0.36.2}/pyield/conftest.py +0 -0
- {pyield-0.36.1 → pyield-0.36.2}/pyield/data_cache.py +0 -0
- {pyield-0.36.1 → pyield-0.36.2}/pyield/date_converter.py +0 -0
- {pyield-0.36.1 → pyield-0.36.2}/pyield/fwd.py +0 -0
- {pyield-0.36.1 → pyield-0.36.2}/pyield/holidays/__init__.py +0 -0
- {pyield-0.36.1 → pyield-0.36.2}/pyield/holidays/br_holidays_new.txt +0 -0
- {pyield-0.36.1 → pyield-0.36.2}/pyield/holidays/br_holidays_old.txt +0 -0
- {pyield-0.36.1 → pyield-0.36.2}/pyield/holidays/brholidays.py +0 -0
- {pyield-0.36.1 → pyield-0.36.2}/pyield/ibge/__init__.py +0 -0
- {pyield-0.36.1 → pyield-0.36.2}/pyield/ibge/ipca.py +0 -0
- {pyield-0.36.1 → pyield-0.36.2}/pyield/interpolator.py +0 -0
- {pyield-0.36.1 → pyield-0.36.2}/pyield/py.typed +0 -0
- {pyield-0.36.1 → pyield-0.36.2}/pyield/retry.py +0 -0
- {pyield-0.36.1 → pyield-0.36.2}/pyield/tn/__init__.py +0 -0
- {pyield-0.36.1 → pyield-0.36.2}/pyield/tn/benchmark.py +0 -0
- {pyield-0.36.1 → pyield-0.36.2}/pyield/tn/lft.py +0 -0
- {pyield-0.36.1 → pyield-0.36.2}/pyield/tn/ltn.py +0 -0
- {pyield-0.36.1 → pyield-0.36.2}/pyield/tn/ntnb.py +0 -0
- {pyield-0.36.1 → pyield-0.36.2}/pyield/tn/ntnc.py +0 -0
- {pyield-0.36.1 → pyield-0.36.2}/pyield/tn/ntnf.py +0 -0
- {pyield-0.36.1 → pyield-0.36.2}/pyield/tn/pre.py +0 -0
- {pyield-0.36.1 → pyield-0.36.2}/pyield/tn/tools.py +0 -0
- {pyield-0.36.1 → pyield-0.36.2}/pyproject.toml +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.36.2"
|
|
@@ -60,6 +60,7 @@ def _fetch_url_tables(target_date: pd.Timestamp) -> pd.DataFrame:
|
|
|
60
60
|
decimal=",",
|
|
61
61
|
displayed_only=True,
|
|
62
62
|
dtype_backend="numpy_nullable",
|
|
63
|
+
na_values="--",
|
|
63
64
|
)
|
|
64
65
|
|
|
65
66
|
df = (
|
|
@@ -95,9 +96,15 @@ def _fetch_url_tables(target_date: pd.Timestamp) -> pd.DataFrame:
|
|
|
95
96
|
def _process_df(df: pd.DataFrame) -> pd.DataFrame:
|
|
96
97
|
df = df.rename(columns=COLUMN_MAPPING)[COLUMN_MAPPING.values()]
|
|
97
98
|
df["Maturity"] = pd.to_datetime(df["Maturity"], format="%d/%m/%Y")
|
|
98
|
-
|
|
99
|
+
|
|
99
100
|
for col in ["MarketQuantity", "MarketValue", "QuantityVariation"]:
|
|
100
|
-
|
|
101
|
+
# Fallback to string conversion in case conversion failed during read_csv
|
|
102
|
+
if df[col].dtype == "string" or df[col].dtype == "object":
|
|
103
|
+
df[col] = df[col].str.replace(".", "", regex=False).replace(",", ".")
|
|
104
|
+
df[col] = pd.to_numeric(df[col], errors="coerce")
|
|
105
|
+
|
|
106
|
+
# Remove the thousands unit from numeric columns
|
|
107
|
+
df[col] *= (1000 * df[col]).astype("Int64")
|
|
101
108
|
|
|
102
109
|
return df
|
|
103
110
|
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.36.1"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|