December 2015
Beginner to intermediate
202 pages
4h
English
While creating an Excel file from a Pandas DataFrame is super easy, you cannot easily customize it. In this recipe, you will learn how to use the XlsxWriter Python library to create a highly customizable report in Excel.
from pymongo import MongoClient import pandas as pd from time import strftime
client = MongoClient('localhost', 27017)
db = client.pythonbicookbook
collection = db.accidents1000 records in which an accident happened on a Friday:data = collection.find({"Day_of_Week": 6}).limit(1000) ...Read now
Unlock full access