Skip to content

Pandas feature for database problems#153

Open
jfy4 wants to merge 3 commits intokaiwk:masterfrom
jfy4:pandas-feature
Open

Pandas feature for database problems#153
jfy4 wants to merge 3 commits intokaiwk:masterfrom
jfy4:pandas-feature

Conversation

@jfy4
Copy link
Copy Markdown

@jfy4 jfy4 commented Oct 6, 2025

Summary

This PR adds automatic Pandas support for LeetCode database (SQL) problems.
When the problem contains MySQL/MSSQL/OracleSQL snippets, leetcode.el can
now open the problem in pandas if the user selects "pythondata" as their preferred
sql language. This is in keeping with the options available on the leetcode website.

Implementation

  • updated leetcode--prefer-sql to include pythondata
  • updated leetcode--lang-suffixes to include ("pythondata" . ".py")
  • Preserves existing SQL functionality

Testing

Verified locally on multiple database problems (Triangle Judgment, and Combine Two Tables)
using Emacs 30.2

Resolves #152

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

How to use pandas for database questions

1 participant