leonoverweel / tz-canary Goto Github PK
View Code? Open in Web Editor NEWInfer plausible time zones for a time series dataset based on Daylight Savings Time (DST) switches
Home Page: https://pypi.org/project/tz-canary/
Infer plausible time zones for a time series dataset based on Daylight Savings Time (DST) switches
Home Page: https://pypi.org/project/tz-canary/
Adding this metadata should enable linking from PyPI to GitHub. Need to figure out doing this in Poetry.
As of Python 3.9, timezone info is included in Python, so we should be able to get rid of this dependency.
Projects using Python 3.9 or later should be using the support now included as part of the standard library, and third party packages work with it such as tzdata. pytz offers no advantages beyond backwards compatibility with code written for earlier versions of Python.
In some places it's plural (TransitionsData
, transitions_data
); in other places it's singular transition_data
.
Will be a breaking change.
While running the test suite, multiple warnings are triggered due to the use of 'T'
as a frequency alias in pd.date_range()
. According to the warnings, 'T'
is deprecated and will be removed in a future version of pandas. The recommended alternative is to use 'min'
.
The warnings originate from the following lines in tests/fixtures/dt_index_fixtures.py
:
Line 7:
return pd.date_range(..., freq='<x>T')
Warning:
FutureWarning: 'T' is deprecated and will be removed in a future version, please use 'min' instead.
Line 14:
return pd.date_range(..., freq='<x>T')
Warning:
FutureWarning: 'T' is deprecated and will be removed in a future version, please use 'min' instead.
Line 21:
return pd.date_range(..., freq='<x>T')
Warning:
FutureWarning: 'T' is deprecated and will be removed in a future version, please use 'min' instead.
python -m pytest
.pd.date_range
.Replace all instances of freq='<x>T'
with freq='<x>min'
in tests/fixtures/dt_index_fixtures.py
to address the deprecation warnings and future-proof the code.
All tests currently pass (16 passed), but the warnings suggest this issue will cause future failures when the deprecated functionality is removed from pandas.
Currently only supporting Python 3.11 because that's all I've tested on, but supporting 3.9+ should be easy enough.
To do:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.