我想使用read_sql_table()使用SQLAlchemy和Pandas将表从Posgresql数据库读取到Pandas数据帧中。对数据库的SQL查询类似于: SELECT col1,col2 FROM my_table WHERE col1=='value' 我尝试使用以下代码从表中获取Pandas数据帧: from sqlalchemytable_df
我正在尝试合并两个都有'product_desc‘列的数据帧。我使用的是Pandas 0.13和Python 2.7。small_df = pd.merge(small_df, linregress_df, on = 'product_desc', how = 'left')pandas.core.index.InvalidIndexError: Reindexing only