Code Monkey home page Code Monkey logo

timeless's Introduction

👋 I'm Eric

Brazilian climate researcher, machine learning enthusiast and developer working on the energy trading market.

🚀 I use Python on climate change research
package-pandas package-scipy tool-anaconda

🤖 and machine learning
package-scikitlearn package-keras package-fastapi

❤️ I love the DataViz super powers of Javascript
code-vue3 code-plotly

🧰 I ship my projects with
tool-docker tool-mongodb tool-aws

🔭 I'm personally interested in
code-golang code-julia

📜 Usually I'm writing code on
editor-vscode editor-jupyter

🐧 I run :(){:|:&};: on
shell-zsh os-ubuntu

timeless's People

Contributors

ericmiguel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

timeless's Issues

🐛 "No time zone found with key" error in Windows

Hello, @ericmiguel !

When i tried to import the timeless module (in my windows enviroment), there's a exception with the message:

No time zone found with key

So, i searched about this error and i found some issues with the python getting the local timezone from a Windows.

And one of the solutions was install (via pip) the tzdata lib. When i installed the "tzdata" via pip, the "No time zone found with key" error message has gone and the Timeless lib worked great!

Command:

pip install tzdata

GitHub topic about this issue: ecederstrand/exchangelib#897

And the StackOverFlow question with the "tzdata" tip: https://stackoverflow.com/questions/71058888/zoneinfonotfounderror-no-time-zone-found-with-key-utc

Thank's for the lib. It's AMAAAZING! ❤️‍🔥

Incompatibilidade com pandas DataFrame

Descrição
Erro retornado ao tentar utilizar um objeto do tipo timeless.datetime para assumir os valores de uma coluna de um Pandas.DataFrame

Exemplo
image
image

Observação
Erro não se repete ao utilizar a função timeless.to_datetime() na data criada.
image

Tipagem incompatível com pydantic

Ao tentar utilizar variáveis do tipo timeless.datetime em uma classe Pydantic, um erro inesperado ocorreu.

image

A utilização parece correta e foi verificada por fora da classe Pydantic

dataf: timeless.datetime = timeless.today().subtract(months=1).get_month_end()
datai: timeless.datetime = dataf.subtract(months=1).set(day=1)

A versão da timeless utilizada é 0.2.7 em um ambiente com python 3.11.6.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.