Skip to content

Tag: python

Inser list of ids into table aioodbc (pyodbc)

I am using aioodbc which is basically async pyodbc. My table has only one columns ClaimID. I am trying to do bukl insert list of ids like [1, 2, ,3 ,4 ,5 ,6 … n] (up to 21k) where ids is a python list of ints. I am getting error How to perform bulk insert of list of ids ?

How to roll up duplicate observation in Python polars?

I have a data frame as- Here I would like to find out duplicates considering last_name and firs_name columns and if any duplicates found their respective ssn needs to be rolled up with semicolon(;) if SSN are not different. if SSN are also same only one SSN needs to be present. the expected output as: Here si…

Select numerical column header names

I have a data frame with column names in numbers 1 to 99, i use integer names to loop for different activities. Datetime in index Is there anyway to call the column header 2 & 8 without converting to string header. Convert integer column name to string name Trial 1 Trial 2 Answer Is there anyway to call t…

crontab django Erorr

I’m trying to start simple crontab-django job scheduled (os is Ubuntu 20.04): this is the myapp/cron.py file as mentioned in the documentation cron.py and this is the settings i used frm the documentation i keep getting this error even i tried to add python manage.py crontab add again and show and it ap…