Code Monkey home page Code Monkey logo

Comments (9)

asaljalilvand avatar asaljalilvand commented on July 19, 2024 3

Hi, I also faced this issue, and I found another library,calplot, which says it's a fork of calmap with some fixes. It works for me.

from calmap.

ddm-j avatar ddm-j commented on July 19, 2024 1

@aliutkus until the author fixes this problem, you can open up the __init__.py file (for me this is located in C:\Users"username"\anaconda3\site-packages\calmap" and CTRL+F search for ax.set_xticks and replace the line with what @markryanandrews has suggested. I've just updated the line and it is working fine now.

from calmap.

MarvinT avatar MarvinT commented on July 19, 2024 1

Hi, if this problem still exists and you'd like to create a PR to fix it please direct it to https://github.com/MarvinT/calmap/
That is the version that gets published to pypi and has received several updates to fix some existing issues.

from calmap.

markryanandrews avatar markryanandrews commented on July 19, 2024

the line should be:
ax.set_xticks([by_day.loc[datetime.date(year, i + 1, 15)].week

ix is no longer used in pandas, loc will fix your problem

from calmap.

aliutkus avatar aliutkus commented on July 19, 2024

hi, ok, so I understand we cannot use calmap anymore ? is there a fix ?

from calmap.

XiaosongWen avatar XiaosongWen commented on July 19, 2024

@aliutkus until the author fixes this problem, you can open up the __init__.py file (for me this is located in C:\Users"username"\anaconda3\site-packages\calmap" and CTRL+F search for ax.set_xticks and replace the line with what @markryanandrews has suggested. I've just updated the line and it is working fine now.

for those who are not using anaconda, the address is like "C:\Users\username\AppData\Local\Programs\Python\Python38-32\Lib\site-packages"

from calmap.

darkmatter2222 avatar darkmatter2222 commented on July 19, 2024

Opened pull request #34 to fix, emailed @martijnvermaat to pull.

from calmap.

darkmatter2222 avatar darkmatter2222 commented on July 19, 2024

Resolved with the #34 merge, @martijnvermaat can mark this issue resolved/closed.

from calmap.

martijnvermaat avatar martijnvermaat commented on July 19, 2024

Thank you for creating the issue. Unfortunately I don't have the time to maintain this project. As per @MarvinT 's comment, please see https://github.com/MarvinT/calmap/ instead.

from calmap.

Related Issues (14)

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.