What's the best way to read pd dataframe from local in Python? or How do I read pd dataframe from loc

16 Replies, 1577 Views

"What's the best way to read pd dataframe from local in Python?"

Hey everyone!

I’ve been trying to read pd dataframe from local files (CSV, Excel, etc.) in Python, but I’m not sure if I’m doing it the most efficient way.

Right now, I’m just using `pd.read_csv()` for CSVs, but my files are kinda big, and it feels slow.

Are there faster methods to read pd dataframe from local? Maybe some tricks with chunks or different libraries?

Also, what about other formats like Excel or JSON—any tips for those?

Thanks in advance!

---

*PS: If you’ve got any gotchas to watch out for, lmk!*

Messages In This Thread
What's the best way to read pd dataframe from local in Python? or How do I read pd dataframe from loc - by - 01-07-2024, 12:49 AM



Users browsing this thread: 1 Guest(s)