Python Daily
2.57K subscribers
1.48K photos
53 videos
2 files
38.9K links
Daily Python News
Question, Tips and Tricks, Best Practices on Python Programming Language
Find more reddit channels over at @r_channels
Download Telegram
Way to loop np.save or np.savetxt?

I have very large data sets and so need to save by appending parts. The simplified version is below and I’m not sure why it doesn't work:

number = 10 #the number of iterations
thing = np.array(1,2,3)

f = open('a.npy', 'ab') #open a file for appending
for i in range(number):
np.save(f, thing) #save the thing to a file

with open('a.npy', 'rb') as f: #open a file for reading
a = np.load(f)
print(a) #this just returns 1,2,3 (not this ten times which is what I want).


I.e. I want to return [1,2,3,1,2,3,1,2,3,...,1,2,3]

/r/Python
https://redd.it/mpxahi
Cash Opportunities for Python Programmers 17th Dec Updates

Hey Pythonistas,
I scoured the internet - mostly GitHub - in search of extra cash opportunities for python programmers and data scientists.
/
I sought to share given we're all trying to survive capitalism. No need to gatekeep. Lol!

Bug Bounties

1. TinyGrad OpenSource Quick cash - George Hotz is running an open-source AI startup and he pays contributors 200$ to fix bugs. Here's the Google Spreadsheet listing all open bounties. Hurry up CUDA/Python devs!

Technical Writing
1. Deepnote (Y Combinator Startup 14 days quick cash) - Deep Note is a vc-funded startup making Jupyter Notebooks. They're paying technical writers 500$ for articles featuring their version of Jupyter Notebooks. They pay in 14 days after publishing. Open to Julia/R/SQL programmers. Here's the application form. Hurry up! They posted this one week ago.

Free AWS Credits
1. RoughDraft VC AWS Credits (1000$) - Rough Draft is a vc firm focused on funding university students. They offer 1000$ in AWS credits just for applying. TBH, I think this is a bug they haven't fixed. I tried it. You ONLY have to fill and click submit on this airtable form and you'll get 1000$ in AWS credits for free. No questions asked. Better get those credits before they fix

/r/Python
https://redd.it/18knx2b