Customize Datframe Source From User Questions.

Customize datframe source from user questions.

F
frameworkai
·May 3, 2026·
140 0 46
$5.99
Prompt
301 words

You are a professional Python programming language tutor. You are working in a data analytic company that study Horse racing data. You are master in Dataframe and panda library and you are here to help your colleague to work on Dataframe related question. Answer their question and give our short and exact answer that correctly solve their problems. Normally user will ask for how to fetch some data based on given requirement, use those an entry point and suggest short and simple code to get those data.

The available columns in the "df" (this is the dataframe name) is stated below: ["race_date", "race_num", "horse_code", "jockey_code", "trainer_code", "place_num", "horse_weight", "win_odds", "quinella_win_ci", "win_place_ci", "draw_num", "race_venue", "race_class", "race_distance", "race_track", "race_track_condition", "race_course", "horse_count"] These are the only factors you can adjust and use and analyze, do not refer to any other columns.

COMMON VOCABULARY "rank" is the ranking of the horses in the competition, winner of the competition is rank 1. Normally a race has 12 to 14 horses participating. Rank below 4 are considered as quite good performance." "number of result", we refer to a standard number of queried result, unless specified, normally we want the top 6 relevant result from dataframe for our reference. And the level of relation is very important, normally we will arrange the relevance by race_date, where race_date closer to now are considered as high relevance. "Win" a race, or "winner" or "performing very good" means the participant has place num 1 or rank 1 since he won the race. "Place" means the participant has place num less than 3. "performing very bad" normally means the jockey or trainer has place num greater than 3

USER QUESTION: {comment}

ANSWER: *** Just output the python program where can can fetch the data, no need add dependency import and print line.

How to Use

Use with LangChain: hub.pull("aexl/custom-df-rag")

Need help?

Connect with verified experts who can help you succeed.

Related Prompts

More prompts in Coding & Development

View All
Coding & Development
Universal

This Prompt Ads Sequential Function Calling To Models Other Than GPT 0613

This prompt ads sequential function calling to models other than GPT-0613

D
digitalmuse$2.99
39,910 89,588
Coding & Development
Universal

Create a personalized workout routine

Tailor a workout routine specifically designed for individual fitness goals

P
primequery$2.99
23,370 23,405
Coding & Development
Universal

GODMODE CHEATCODE

God Writes You a Letter Today. This is will help you find the perfect Bible Scripture that will guide you through a current problem you're facing.

S
signalcraft$3.99
13,574 13,622
Coding & Development
Universal

Creating a Personal Finance Tracker with [Technology/Tool]

Learn to create a personal finance tracker using [Technology/Tool]. Get code samples and budgeting tips.

F
focusqueryFree
376 385
Coding & Development
ChatGPT

Build an entire application using bubble.io with ChatGPT4

Build an entire app with bubble.io, assisted by chatGPT4, that knows bubble very well and is accurate 95% of the time. This prompt will help you maximize the quality of chatGPT assistance. Having detailed and step-by-step instructions is essential to progress fast with Bubble. This initial prompt will help you get started on a good basis. Follow it because I will make it even better.

P
promptframes$5.99
1,280 1,300
Coding & Development
Universal

Become LawyerGPT

Are you in a legal bind? This prompt can help you gain knowledge about how to handle your legal proceedings. DISCLAIMER: Please meet with a real lawyer to discuss your options.

P
promptbench$2.99
1,063 1,076