Skip to content

Instantly share code, notes, and snippets.

View jaredfiacco2's full-sized avatar

Jared Fiacco jaredfiacco2

View GitHub Profile
@romicofre
romicofre / firestore_to_pandas_dataframe.py
Created June 28, 2020 01:03
Load firestore table to pandas dataframe
import pandas as pd
from google.cloud import firestore
db = firestore.Client()
users = list(db.collection(u'users').stream())
users_dict = list(map(lambda x: x.to_dict(), users))
df = pd.DataFrame(users_dict)