Skip to content

Conversation

@jfy4
Copy link

@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