This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
date | clicks | |
---|---|---|
2020-07-01 | 1 | |
2020-07-02 | 2 | |
2020-07-03 | 0 | |
2020-07-04 | 2 | |
2020-07-05 | 2 | |
2020-07-06 | 0 | |
2020-07-07 | 0 | |
2020-07-08 | 0 | |
2020-07-09 | 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding: utf-8 | |
"""rank by ascending date | |
""" | |
from datetime import date | |
from faker import Factory | |
import pandas as pd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
from datetime import datetime | |
from dateutil.relativedelta import relativedelta | |
import pymongo | |
from pymongo import MongoClient | |
from jinja2 import Template |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
"""From a Query.all(), turn this result to a pandas DataFrame | |
Table creation and example data come from the official SQLAlchemy ORM | |
tutorial at http://docs.sqlalchemy.org/en/latest/orm/tutorial.html | |
Just take a look at the 'query_to_dict' function and the last part of the __main__. | |
""" |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# Author: Damien Garaud | |
# Date: 2014 | |
# License: Simplified BSD | |
"""Open a Python module in you editor when you're looking for a class, function | |
or module name. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
# Author: Damien Garaud | |
# Date: 2014-2015 | |
# License: Simplified BSD | |
"""Allow you to pipe command results into an Emacs buffer. Suppose you have an | |
Emacs server since you launch 'emacsclient'. |