openseries 1.5.5__py3-none-any.whl → 1.5.6__py3-none-any.whl
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.
- openseries/datefixer.py +3 -1
- {openseries-1.5.5.dist-info → openseries-1.5.6.dist-info}/METADATA +3 -3
- {openseries-1.5.5.dist-info → openseries-1.5.6.dist-info}/RECORD +5 -5
- {openseries-1.5.5.dist-info → openseries-1.5.6.dist-info}/LICENSE.md +0 -0
- {openseries-1.5.5.dist-info → openseries-1.5.6.dist-info}/WHEEL +0 -0
openseries/datefixer.py
CHANGED
@@ -62,7 +62,7 @@ def holiday_calendar(
|
|
62
62
|
endyear += 1
|
63
63
|
if startyear == endyear:
|
64
64
|
endyear += 1
|
65
|
-
years = list(range(startyear, endyear))
|
65
|
+
years = list(range(int(startyear), int(endyear)))
|
66
66
|
|
67
67
|
if isinstance(countries, str) and countries in list_supported_countries():
|
68
68
|
staging = country_holidays(country=countries, years=years)
|
@@ -412,9 +412,11 @@ def do_resample_to_business_period_ends(
|
|
412
412
|
data.index = Index(d.date() for d in DatetimeIndex(data.index))
|
413
413
|
|
414
414
|
if newhead.index[0] not in data.index:
|
415
|
+
# noinspection PyUnreachableCode
|
415
416
|
data = concat([data, newhead])
|
416
417
|
|
417
418
|
if newtail.index[0] not in data.index:
|
419
|
+
# noinspection PyUnreachableCode
|
418
420
|
data = concat([data, newtail])
|
419
421
|
|
420
422
|
data = data.sort_index()
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: openseries
|
3
|
-
Version: 1.5.
|
3
|
+
Version: 1.5.6
|
4
4
|
Summary: Tools for analyzing financial timeseries.
|
5
5
|
Home-page: https://github.com/CaptorAB/openseries
|
6
6
|
License: BSD-3-Clause
|
@@ -20,7 +20,7 @@ Classifier: Programming Language :: Python :: 3.10
|
|
20
20
|
Classifier: Programming Language :: Python :: 3.11
|
21
21
|
Classifier: Programming Language :: Python :: 3.12
|
22
22
|
Classifier: Topic :: Office/Business :: Financial :: Investment
|
23
|
-
Requires-Dist: holidays (>=0.30,<
|
23
|
+
Requires-Dist: holidays (>=0.30,<0.50)
|
24
24
|
Requires-Dist: numpy (>=1.23.2,<=2.0.0)
|
25
25
|
Requires-Dist: openpyxl (>=3.1.2,<4.0.0)
|
26
26
|
Requires-Dist: pandas (>=2.1.2,<3.0.0)
|
@@ -302,7 +302,7 @@ make lint
|
|
302
302
|
| `value_nan_handle` | `OpenTimeSeries`, `OpenFrame` | Fills `Nan` in a value series with the preceding non-Nan value. |
|
303
303
|
| `return_nan_handle` | `OpenTimeSeries`, `OpenFrame` | Replaces `Nan` in a return series with a 0.0 `float`. |
|
304
304
|
| `to_cumret` | `OpenTimeSeries`, `OpenFrame` | Converts a return series into a value series and/or resets a value series to be rebased from 1.0. |
|
305
|
-
| `to_json` | `OpenTimeSeries`, `OpenFrame` | Method to export
|
305
|
+
| `to_json` | `OpenTimeSeries`, `OpenFrame` | Method to export object data to a json file. |
|
306
306
|
| `to_xlsx` | `OpenTimeSeries`, `OpenFrame` | Method to save the data in the .tsdf DataFrame to an Excel file. |
|
307
307
|
| `value_to_ret` | `OpenTimeSeries`, `OpenFrame` | Converts a value series into a percentage return series. |
|
308
308
|
| `value_to_diff` | `OpenTimeSeries`, `OpenFrame` | Converts a value series into a series of differences. |
|
@@ -1,7 +1,7 @@
|
|
1
1
|
openseries/__init__.py,sha256=W429Ojwa-wPgHV5PDAOQOBOAzPOR4wrVHRwdZQjRKcQ,41
|
2
2
|
openseries/_common_model.py,sha256=gHJfvxsOjrjGnuoTm62LRYho_VeEhRKmbY9xM6tiRUk,75497
|
3
3
|
openseries/_risk.py,sha256=4ckiA-0-uuoUOsuc_uElUA_2rLS_U3xJyiva2BX4W1s,3300
|
4
|
-
openseries/datefixer.py,sha256=
|
4
|
+
openseries/datefixer.py,sha256=DtluyFPfrnXTqRnSfYyNfAE4KzAOiFwgDW8bJM3NjBA,12470
|
5
5
|
openseries/frame.py,sha256=SH1sPUFoJS71o2uVJBLoDl3rSC8AP7wQZw3baMD9T4U,74019
|
6
6
|
openseries/load_plotly.py,sha256=L4A3Fa5Jk47FY7pcg0NPZ0gm0JD_uCXjVlGC7FWVSJg,1856
|
7
7
|
openseries/plotly_captor_logo.json,sha256=F5nhMzEyxKywtjvQqMTKgKRCJQYMDIiBgDSxdte8Clo,178
|
@@ -9,7 +9,7 @@ openseries/plotly_layouts.json,sha256=ahx8-dL4_RPzvHtBOX0SiL0AH7xQJzNRSDhGrSmU-O
|
|
9
9
|
openseries/series.py,sha256=pIpiD3v8z7SyIppBatbsPuqOWCf3qI_us2145JnPUkQ,28313
|
10
10
|
openseries/simulation.py,sha256=VYxc-e5VSyC55DdfACpQen-necYbhso-6RMyOhYX-5k,13905
|
11
11
|
openseries/types.py,sha256=yJmGZcBFwvMQQEaRVb0vhVMP463xu7MSydjWr12X38M,7689
|
12
|
-
openseries-1.5.
|
13
|
-
openseries-1.5.
|
14
|
-
openseries-1.5.
|
15
|
-
openseries-1.5.
|
12
|
+
openseries-1.5.6.dist-info/LICENSE.md,sha256=cPUabMxJ6-ziqzqS6aLGkR-ilIOKe_s3Qtyp0ioTmo0,1521
|
13
|
+
openseries-1.5.6.dist-info/METADATA,sha256=aE0BWMcUlTQgJxWNK52MCYkO9dFFccqzn4BpR6_R9bA,44223
|
14
|
+
openseries-1.5.6.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
15
|
+
openseries-1.5.6.dist-info/RECORD,,
|
File without changes
|
File without changes
|