excel

Python Numpy polyfit gets the same as Excel Linear for slope

Python Numpy polyfit gets the same as Excel Linear for slope Question: By the use of below, I get the slope of a list of number. It’s referenced from the answer to this question, Finding increasing trend in Pandas. import numpy as np import pandas as pd def trendline(data, order=1): coeffs = np.polyfit(data.index.values, list(data), order) …

Total answers: 1

Finding overlapping employees in departments using excel

Finding overlapping employees in departments using excel Question: I have my reference data which looks like this. I’m trying to create a calendar using weekdays and 5 time slots as shown below. Using the calendar, I want to identify if there are any potential clashes between departments. What I mean by that is: On any …

Total answers: 1

How to scrape the specific text from kworb and extract it as an excel file?

How to scrape the specific text from kworb and extract it as an excel file? Question: I’m trying to scrape the positions, the artists and the songs from a ranking list on kworb. For example: https://kworb.net/spotify/country/us_weekly.html I used the following script: import requests from bs4 import BeautifulSoup response = requests.get("https://kworb.net/spotify/country/us_weekly.html") content = response.content soup = …

Total answers: 1

Writing a DataFrame to an excel file where items in a list are put into separate cells

Writing a DataFrame to an excel file where items in a list are put into separate cells Question: Consider a dataframe like pivoted, where replicates of some data are given as lists in a dataframe: d = {‘Compound’: [‘A’, ‘A’, ‘A’, ‘B’, ‘B’, ‘B’, ‘C’, ‘C’, ‘C’, ‘C’], ‘Conc’: [1, 0.5, 0.1, 1, 0.5, 0.1, …

Total answers: 2

How can I export all data to an Excel file using openpyxl?

How can I export all data to an Excel file using openpyxl? Question: I am trying to write all the data inputted by my user to an Excel file, with each new entry being entered underneath the most recent one. It should do this in my GUI once I click submit. I managed to get …

Total answers: 1

Pull Stock Symbols from Excel file instead of hard coding the symbols

Pull Stock Symbols from Excel file instead of hard coding the symbols Question: I currently have code where I’m hard coding stock symbols in the line below. response = c.get_quotes([‘META’,’AAPL’,’CAT’,’GOOG’]) Instead of hard coding the symbols, I want to pull them from column A in an excel file. Column A I’m pretty sure I would …

Total answers: 1

Ordering data in python or excel

Ordering data in python or excel Question: I have a large csv file of unordered data. It consists of music tags. I am trying to group all of the similar tags together for easier analysis. An example of what I have: Band1, hiphop, pop, rap Band2, rock, rap, pop band3, hiphop, rap The output I …

Total answers: 3

Reshape excel table with stacked date column

Reshape excel table with stacked date column Question: I have an excel file that has diffrent weather stations and the minimum and maximum temprature of every month in a year like this: Name Time Minimum Maximum Station 1 2020-01 -10 2 … … … 2020-12 -5 0 Station 2 2020-01 -8 4 … … … …

Total answers: 1