How to get the correlation between two timeseries using Pandas
I have two sets of temperature date, which have readings at regular (but different) time intervals. I'm trying to get the correlation between these two sets of data.I've been playing with Pandas to try...
View ArticleWrite a one-line Python generator expression that returns an infinite...
The question:"Write a one-line Python generator or iterator expression that returns the infinite sequence of increasing integers generated by repeatedly adding the ascii values of each letter in the...
View ArticleERROR: Could not build wheels for pyzmq, which is required to install...
I am unable to use Jupyter notebooks on VS Code within a virtual environment, due to a problem with installing ipykernel. When I switch to the global environment, ipykernel installs fine and I can run...
View Articleweb scrapping of webpage - chartink [closed]
Please help me to scrape this link. link - https://chartink.com/screener/futures-ema-44-89-and-133 I am trying to web scrape but it is not showing the table which I want. please help me the same.I have...
View ArticleI want to store the headers of the table using web-scraping [closed]
To keep it short, I'm trying to web-scrape table headers located in the table when you go to the other page using Scorecard column links. The idea is the code should store all the headers from each and...
View ArticleI tried using the Mistral OpenOrca, since I am new to it, I dont know how it...
I recently saw about the mistral OpenOrca AI in the internent. I was amused by its capabilities and wanted to try it on my system locally, since I am new to using the LLM, I am not so sure on using it...
View ArticleSize of a vector in python being (N,1) instead of (N,)
In python, I am writing a code that at some point takes a matrix (could be a vector) X and considers it's dimension, since I want to store each dimennsion in variables $m$ and $n$ respectively. If the...
View ArticleList comprehension instead of using append in for loop
I want to use list comprehension instead of using append method because it make the code runs faster however when it is a numpy array it doesn't work.import numpy as npa = np.array([1, 2 , 4])b =...
View ArticleDatabase config for Django and SQL Server - escaping the host
I have setup my Django app to use Microsoft SQL Server database. This is my database config. DATABASES = {'default': {'ENGINE': 'mssql','NAME': "reporting",'HOST': '192.168.192.225\SQL2022;','PORT':...
View ArticleModuleNotFoundError: No module named 'keras.src' - Python
I am trying to load my model with this code:`# Load the model with open('tomato_model.pkl', 'rb') as model_file: #from keras.models import load_model model = pickle.load(model_file)`But it kept on...
View ArticleHow to filter odd and even numbers with Python code? [closed]
I am learning Python. 🐍I wrote a simple program that filter odd and even numbers.Can we have optimization for this code?while not 0: a = int(input("a = ")) Aa = abs(a) q = Aa // 2 r = Aa % 2 # q, r =...
View Articlehow to detect rmqr code (Rectangular Micro QR Code ) in image by python?
I looking for some solution which detect Rectangular Micro QR Code in image.General qr code is not problem. But I made rMQR (ISO/IEC 23941:2022(e)) code by qmqrcode from git.(details are here...
View ArticleDart equivalent to Python zip and list comprehension for generating list of...
I want to create a list of widgets MyWidget(categoryName, color) from the following two lists. static const _categoryNames = <String>['Length','Area','Volume', ]; static const _baseColors =...
View ArticleAdded Lag to dataframe and getting error "ValueError: not in index"
Trying to build model where user will provide input of factors(presented as #hash code for now) based on input predict product price with lags.Example: Heavy rain during summer will impact price of...
View ArticleHow to toggle between tabs in intellij Idea
How to toggle between tabs in intellij IdeaI wanted to toggle between tabs in intellij idea as I have multiple files and working on them sometimes requires switching from one tab to another (or one...
View ArticleHow can I unit test the log file?
I must run the script below by hand $ python -m mylog in order to test logging.Why does $ pytest -s fail creating the logfile?#mylog.pyimport loggingdef foobar(logfile):...
View ArticleStart Python from Windows PowerShell
I know this looks like a question answered thousands of time, but none of the traditional answers concerning the environment PATH are working.I want to run the following in Windows 7, in...
View Articlesampling and feature selection on RCV1 dataset
I am interested in applying classification algorithms such as KNN, GP, MLP, etc., on the RCV1 dataset for topic classification. However, this dataset is quite large, with dimensions of (804414, 47236)...
View Articlea question about python linked list deletion method
I follow up a data structures book, and there, we implement a LinkedList class with it's methods, I have a question about the deletion method def deletion(self, index): current_node = self.first_node...
View Article