docs/versioned_docs/version-2.61.0/how-to/import-external-lib-py.md
ToolJet allows you to utilize python packages in your app by importing them using the RunPy query. In this how-to guide, we will import a few packages and use them in the application.
</div>:::caution Unsupported modules Modules with C/C++ extensions needing system libraries won't work in Pyodide, as it runs in a web browser without system library access. Pyodide, based on WebAssembly-compiled Python, also doesn't support certain system calls. :::
<div style={{paddingTop:'24px', paddingBottom:'24px'}}>import micropip
await micropip.install('pandas')
await micropip.install('numpy')
Run this query on application load? to make these packages available every time the application loads.from numpy import random
x = random.binomial(n=10, p=0.5, size=10)
print(x)
You can check the output on the browser's console.
</div> <div style={{paddingTop:'24px', paddingBottom:'24px'}}>StringIO, csv, and Pandas module.from io import StringIO
import csv
import pandas as pd
scsv = components.filepicker1.file[0].content
f = StringIO(scsv)
reader = csv.reader(f, delimiter=',')
df = pd.DataFrame(reader)
print(df.info())
print(df)
On File Loaded as the Event and Run Query as the Action.