Skip to main content

All Questions

Tagged with or
1 vote
2 answers
98 views

I am quite new to Pandas. I need to select/locate the records between 2 dates. I have tried a range of methods, but cant seem to get it. I have included a cut down of sample of the CSV/Data I am ...
JDP's user avatar
  • 13
1 vote
1 answer
51 views

I have the dataframe below. If the value in "Volume" is greater than > 1000, I would like to divide the volume by two and duplicate the entire row. Any advise on how to do this in Python?...
EJD's user avatar
  • 11
6 votes
1 answer
3k views

When I am about to review a pull request on GitHub, I look at the lines of code changed to get an idea of how time-consuming the review will be. However, many projects include a bunch of generated ...
Joel Broström's user avatar
3 votes
1 answer
119 views

I'm new to Python and stackoverflow. So please forgive any shortcomings in my posting. I want to calculate the row average of a specific row(e.g. Bahrain) and I'm having problem achieving it. I used ...
Amirtak's user avatar
  • 69
0 votes
1 answer
65 views

I have an issue with using the 'loc' function in Python. I would like to extract a specific row from my dataframe 'df', which contains movie titles along with their respective information. The problem ...
Alessandro Robuschi's user avatar
1 vote
1 answer
84 views

I would like to drop 30 minutes of data after column is -1. I have a large dataset and I need to remove 30 minutes from the dataframe after the column 'diff' == -1 I have the following code: df12_3....
lourew's user avatar
  • 75
0 votes
2 answers
84 views

I'm trying to replace the NaN values from a DataFrame with the correspondent month and hour mean value of this DataFrame. So let's say I have a DataFrame with generic measures where, randomly, there ...
Endo's user avatar
  • 3
0 votes
1 answer
50 views

https://github.com/ajayvd/DOUBT_SO/blob/main/doubt.csv The above link contains the data frame and it contains 2 columns response_value & response_errors & The response_errors contains the ...
lifo's user avatar
  • 19
0 votes
1 answer
79 views

I need to match the payment of invoices in the DocN column of df1 with the data in the TXT column in df2. Print the document (DocN) + the amount (DocSum) and the details of the corresponding payment (...
user534280's user avatar
1 vote
1 answer
60 views

Imagine I have the following dataframe with employees, their contract type (values could be Employee, Contractor and Agency). Also, one person can have more than 1 contract as you could see in the ...
Paulo Cortez's user avatar
0 votes
1 answer
812 views

New python programmer here. Sample data is shown below. I have a dataframe that has < 1,000 rows. That df came from reading an Excel workbook. The "Store" column has multiple kinds of ...
Fred's user avatar
  • 1
0 votes
1 answer
49 views

Imagine I have a dirty dataframe of employees with their ID, and Contract related information per country. Some columns of this dataframe are LOV columns (depending on the country, some columns are ...
Paulo Cortez's user avatar
1 vote
1 answer
47 views

I have 2 dataframes, one of them of employee information by Country, and another one with a mapping of possible values for LOV columns per country (depending on the country, the column may or may not ...
Paulo Cortez's user avatar
0 votes
1 answer
47 views

I have a large dataset with different rows that I created using formulas and the grouped by function # Create new column "iCPI" grouped_sums['iCPI'] = grouped_sums['Budget Delivered'] / ...
Chris Peng's user avatar
-1 votes
2 answers
2k views

There are all sorts of tools for counting lines of code in a source file or directory tree (e.g. cloc). There are also tools for counting words in a plain text file (wc). How would I go about counting ...
einpoklum's user avatar
  • 140k

15 30 50 per page
1
2 3 4 5
12