I want to create a database with a matrix with about 3000 columns and 2500 rows on sqlite. However, it has the 2000 column limitation. I downloaded sqlite-amalgamation from https://www.sqlite.org/download.html and changed SQLITE_MAX_COLUMN to 3000 on sqlite3.c file. My O.S. is Ubuntu. I tried to uninstall sqlite3 with
sudo apt-get remove sqlite3
sudo apt-get autoremove sqlite3
sudo apt-get autoremove --purge sqlite3
It seems sqlite3 is uninstalled. But when I type import sqlite3 in anaconda spyder, it seems sqlite3 is still exists. I restarted my computer but nothing changed. However, I tried to compile modified sqlite3. I run
./configure
Then I run
make
and got this error
make: Nothing to be done for 'all'.
And Finally nothing changed and when I use the following code to import the 2500*3000 matrix in my excel file to my database
import sqlite3
import pandas as pd
connection_obj = sqlite3.connect('MyDataBase.db')
MyTable = pd.read_excel('my_excel.xlsx', sheet_name='sheet1')
MyTable.to_sql('MyTable', connection_obj, index=False)
connection_obj.commit()
I get this error
OperationalError: too many columns on MyTable
What should I do? Thanks.