Get Transactions
Tags: #naas #credits #snippet
Author: Maxime Jublou

Input

Import library

1
from naas_drivers import naascredits
2
import pandas as pd
Copied!

Variables

1
page_size = "100000"
Copied!

Model

Function

1
df = pd.DataFrame(naascredits.connect().transactions.get(page_size=page_size))
2
df
Copied!

Output

Display result

1
df.to_csv('billing.csv')
Copied!
Copy link
Edit on GitHub