This is a tough obstacle to overcome.
I myself had the same issue in University (being lazy, producing substandard work, barely getting the requisite scores to pass my courses (and sometimes not even getting those minimum scores)). Unfortunately, upon graduating, I spent 6 fruitless months job searching before settling for a job out-of-field that did not care about my past academics or experiences (started pursuing BS in computer science, switch to BA in Economics, finished with a poor GPA, ended up working in the automotive sector as a 'programmer', where my actual duties range from software engineering to on-the-floor build and low-grade programming, with my pay averaging $10k/yr less than a 'qualified' person holding that same title).
I have had lots of time to think on what I should have done differently (over 5 years), and to research what would have been the smarter approach for me, given my poor GPA. The good news is, in any software/data science related field, you can produce a measureable product even without a job. The bad news is, if it's not perfect (or doesn't match what the prospective employer expects) it can be just as detrimental as if you had not done anything at all.
I would highly suggest developing a portfolio in the portion of the field you wish to get into (such as developing programs in a commonly used language) and referring to it as 'self study and professional development' on your resume. It may help landing an interview, and it can be used as an example of what weakness you had, and how you overcame that weakness during the interview. Self study (if provable) also demonstrates your ability to operate without heavy managerial oversight, which is attractive for many companies, especially smaller ones.
I will caution you that pursuing this path of career development can be very frustrating, as many companies willing to hire out of such an unusual track will expect to pay less money, and have a more self-motivated, independent employee (less money + more stress for you).
If you don't know precisely what you need, or what you wish to do, there are always freelance jobs that can give you a direction (even if they don't hire you, you can always do the project on your own time for your personal/portfolio development). A simple search on the search engine of your choice can give you a variety of starting points that may accurately reflect the desires of companies on the market today.
Good luck, the path ahead will be difficult.