I have .csv file with only 2 columns. ("left" and "right") The file size is less than 200 MB I use the following code on dev server and it works as expected:
import pandas as pd df = pd.read_csv('en_bigram.csv') st = df[df["right"] == "some_text"]["left"] st[st.str.startswith("My")].to_list() "pandas" module is not installed on production server. I will like to know if
I should install pandas
or
I should rewrite the code in pure python
Is there any overhead (like memory/ cpu) in using pandas in production? Can the 4 lines pandas code written using python's built in modules like csv in 4 or 5 lines?
https://stackoverflow.com/questions/65912670/does-pandas-consume-more-resources-like-memory January 27, 2021 at 11:52AM
没有评论:
发表评论