It’s my first question at such cool resource. Description of a goal: I need to copy from one Azure storage account to another. … Not only this, but this part doesn’t work for me now. Problem: If generate token with generate_blob_sas you will have in azcopy operation: INFO: Authentication fai…
Tag: python
Is there a way to transfer the contents of a for statement to a function?
So i’m currently trying to make a program that encrypts, then decrypts a file. For the encryption process i’m trying to move a line of the given file to another function, that will replace a letter at one index from the arranged list corresponding to the words in the file, with a letter at the sam…
Pycharm Window Not Displaying Correctly
I followed a Youtube tutorial for creating a Chess engine in Python code for code but it will not work in Pycharm? I can see that the correct chess board has been created but only when I close the pop-up window. Initially it shows as a black screen, then when I close the window it briefly appears before shutt…
Subtracting from inner list
There is 5 fundraising projects, and the purpose of this program is to substract the amount of money that each of n donators will donate from the desired sum of each project The program partially work, but sometimes python typing “TypeError: ‘NoneType’ object is not subscriptable” and …
Data type assigned inside nested for loop isn’t as expected
I get the error: AttributeError: ‘float’ object has no attribute ‘lower’ When trying to compile this triple nested for loop: df_row_list is a list of 18 series. I am trying to iterate through it and comb through the data. How do I assign the str data type to row_item_data so that I can…
Unable To Run AzureML Experiment with SDK – Failed to Build Wheel for pynacl / Exit status:1
I am trying to run a AzureML Experiment using sdk (following a Udemy course). When I try to use the Experiment.submit function the experiment prepares and then fails with the following error messages: The Azure env as created within my anaconda navigator for a short period of time and then gets removed. Does …
Regex find hash comments exclude curly brackets
I want to find the hash comments that don’t contain the text inside curly braces. But if it starts with #, it’s all comments. Input: Output: I want to be able to achieve what I want with one line of regular expression. Currently I can only find all strings starting with # by {.*?}(*SKIP)(*F)|#[^#{…
Hypothesis library: strategy for the complement of some other strategy
I’m using the Hypothesis library for unit testing. With this library you don’t hand-pick inputs, but you define the complete set of inputs for which you want to test. Hypothesis will then sample from this set to look for inputs that break the function. This is also known as property-based testing.…
how to get nth chunks of items of a list in python?
I would like to get every 4 chunks of a list of items, where the first item has the index corresponding to 4-1, so a previous step. I am only able to get every 4 chunks, but I am stuck at getting every item of the list to start at a “previous step” or 4-1. Should I loop through this
I would like to take a data from in the csv file
this is the equivalent of my csv file; this csv file has 8000 data. I want to separate the “a”, “b”, ,”c”, … “z” in the customer column with the quantity column. this csv file is just an example, actually customers are too many. I don’t know the cust…