Is there a python pandas function to directly read .data file?
No. A .data file could be absolutely anything.
Use the file utility to try to identify the file format, or better yet ask the party you got the data from what it is.
I'm working on a dataset and the data is provided to us in a .data file. is there any direct function like read_csv or read_excel?