Buckets:
AnonymousSpottedToad/human_verified_bucket / codebase /python /Chainlit_chainlit /cypress /e2e /dataframe /main.py
| import pandas as pd | |
| import chainlit as cl | |
| async def start(): | |
| # Create a sample DataFrame with more than 10 rows to test pagination functionality | |
| data = { | |
| "Name": [ | |
| "Alice", | |
| "David", | |
| "Charlie", | |
| "Bob", | |
| "Eva", | |
| "Grace", | |
| "Hannah", | |
| "Jack", | |
| "Frank", | |
| "Kara", | |
| "Liam", | |
| "Ivy", | |
| "Mia", | |
| "Noah", | |
| "Olivia", | |
| ], | |
| "Age": [25, 40, 35, 30, 45, 55, 60, 70, 50, 75, 80, 65, 85, 90, 95], | |
| "City": [ | |
| "New York", | |
| "Houston", | |
| "Chicago", | |
| "Los Angeles", | |
| "Phoenix", | |
| "San Antonio", | |
| "San Diego", | |
| "San Jose", | |
| "Philadelphia", | |
| "Austin", | |
| "Fort Worth", | |
| "Dallas", | |
| "Jacksonville", | |
| "Columbus", | |
| "Charlotte", | |
| ], | |
| "Salary": [ | |
| 70000, | |
| 100000, | |
| 90000, | |
| 80000, | |
| 110000, | |
| 130000, | |
| 140000, | |
| 160000, | |
| 120000, | |
| 170000, | |
| 180000, | |
| 150000, | |
| 190000, | |
| 200000, | |
| 210000, | |
| ], | |
| } | |
| df = pd.DataFrame(data) | |
| elements = [cl.Dataframe(data=df, name="Dataframe")] | |
| await cl.Message(content="This message has a Dataframe", elements=elements).send() | |
Xet Storage Details
- Size:
- 1.51 kB
- Xet hash:
- f65a5e69fd9cafb0ef2f13575a645882bab0a3d2bc713cada0a2ee826de8b5b1
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.