Local path completion in python functions

Hi Doom Emacs!

Suppose I have a local csv file that is located in /home/my_data/data.csv. Suppose I also have some code that looks like this:

import pandas as pd

df = pd.read_csv(PATH_TO_MY_DATA)

I was curious if it were possible to have local paths be tab completed in a function like read_csv() (or any function really)?

In other words, once I start writing pd.read_csv('/home/my_' and then hit tab, is it possible to have a window popup or something that will tab complete to pd.read_csv('/home/my_data/'?

Thanks in advance for your help!

System information


Loading data dump...