I'm new to Polars. I'm trying to get data from MySQL using polars for one of my project. here I have made a connection and trying to retrieve some sample data from a table.
on executing this query it returns some of index data not the actual data from table. what could be the reason for it ? it should actually give an output as this:
please guide me how to make a connection in between MySQL and Polars. because i have about 250M records stored in a table on which i have to do some of data analysis I have tried this command using pandas, pymysql:
df_pol = pl.from_pandas(pd.read_sql(f'SELECT *FROM complete_list_rolled_up',con))
here I have got an Memory Error while reading data from data using pandas statement .
In an another case: using connectorX to retrieve data from MySQL as follows:
cx.read_sql(uri,'SELECT *FROM complete_list_rolled_up limit 5')
I'm able to read the same table using connectorX as above. but in output it shows b in every entry such as b'unknown', b'49499494' etc etc.
What could be the reasons for getting this kind of outputs reading the data from MySQL using polars/connectorX?
Any idea on making DB connections between MySQL and Polars?