id
stringlengths
7
11
source
stringclasses
1 value
category
stringclasses
11 values
title
stringlengths
15
214
text
stringlengths
70
30.5k
url
stringlengths
57
160
tags
stringlengths
3
113
created_at
int64
1.22B
1.79B
se_76774593
stackoverflow
DATA_SCIENCE
Need help appending info to an empty list
Need help appending info to an empty list I am new to coding. I was trying to scrape the Indeed website for jobs. I was able to scrape job titles, company name, and location using selenium find_element. I want to know how I can now append these titles in an empty list, the same for company names and location. And then...
https://stackoverflow.com/questions/76774593/need-help-appending-info-to-an-empty-list
python-3.x, selenium-webdriver, beautifulsoup, data-analysis
1,690,400,909
se_76773029
stackoverflow
DATA_SCIENCE
How to accumulate data over simulations in python
How to accumulate data over simulations in python I have a function simulate: import torch MAX_VALUE = 12 LENGTH, WIDTH = (120, 5) MC_N = 100000 batch_size = 50 def simulate() -> tuple[npt.NDArray[np.int6], npt.NDArray[np.int16]]: x = torch.randint(low=0, high=MAX_VALUE, size=(batch_size, LENGTH, WIDTH), device...
https://stackoverflow.com/questions/76773029/how-to-accumulate-data-over-simulations-in-python
python, pytorch, simulation, data-analysis, montecarlo
1,690,386,555
se_76705931
stackoverflow
DATA_SCIENCE
Palantir Foundry - Slate Dashboard - Sync error
Palantir Foundry - Slate Dashboard - Sync error I have a Slate Dashboard Developed in Foundry. Until last week, I had no issues in plotting the data to the dashboard graphs that were created. The Issue: Unfortunately, in the past 5 days when we try to load the Slate Dashboard, we are unable to see the data getting plo...
https://stackoverflow.com/questions/76705931/palantir-foundry-slate-dashboard-sync-error
data-analysis, palantir-foundry, foundry-slate
1,689,607,248
se_75924944
stackoverflow
DATA_SCIENCE
Create a scoring formula to compare ratings
Create a scoring formula to compare ratings I have a table with 6 columns (name,1-5) representing rating number. The table has rows with item name and how many 1 stars, 2 stars etc it received For example: Item 1 2 3 4 5 ------------------------- A 1 0 0 2 0 B 1 0 0 0 0 C 5...
https://stackoverflow.com/questions/75924944/create-a-scoring-formula-to-compare-ratings
algorithm, math, statistics, data-analysis
1,680,573,350
se_76764740
stackoverflow
DATA_SCIENCE
How to only show color choices for the data on the screen, not all data, in Spotfire
How to only show color choices for the data on the screen, not all data, in Spotfire I have some visualizations on Spotfire, that have a slider as X-axis, and by sliding it, data points get added or removed based on the current slider position. The data points have colors, and they're shown in the legend pane. Now the...
https://stackoverflow.com/questions/76764740/how-to-only-show-color-choices-for-the-data-on-the-screen-not-all-data-in-spot
filtering, data-analysis, spotfire
1,690,302,468
se_76749006
stackoverflow
DATA_SCIENCE
Lookup a value in a matrix based on two variables of another dataframe using Python
Lookup a value in a matrix based on two variables of another dataframe using Python I am a still beginner in data analysis, especially in my new study field analysis. Currently, I have a Distance Matrix [7,000 row x 7,000 col] with a total of 49 M cells. Also, I have another Count Dataframe that has some indices from ...
https://stackoverflow.com/questions/76749006/lookup-a-value-in-a-matrix-based-on-two-variables-of-another-dataframe-using-pyt
python, dataframe, matrix, data-analysis
1,690,125,667
se_76738301
stackoverflow
DATA_SCIENCE
How can perform an pandas apply method on Dataframe?
How can perform an pandas apply method on Dataframe? The problem is that i am tackling to convert Organisations by NumberOfSpaceMission. If number of space mission smaller than particular value the new column important_organisation will be 'Other countries' otherwise it will be organisation's name which is index of da...
https://stackoverflow.com/questions/76738301/how-can-perform-an-pandas-apply-method-on-dataframe
python, pandas, dataframe, apply, data-analysis
1,689,944,904
se_76709772
stackoverflow
DATA_SCIENCE
Plot Change in Total Production Across Different Continents Over the Years
Plot Change in Total Production Across Different Continents Over the Years This is the sample of data: continent long lat group order region subregion Year_Range Total_Production <chr> <dbl> <dbl> <dbl> <int> <chr> <chr> <chr> <dbl> Americas -67.7268066 44.566502 1501 92481 USA N...
https://stackoverflow.com/questions/76709772/plot-change-in-total-production-across-different-continents-over-the-years
r, ggplot2, visualization, data-analysis
1,689,658,679
se_76710041
stackoverflow
DATA_SCIENCE
I need to collect demographic data based on location
I need to collect demographic data based on location I need to collect demographic data based on location. Is google provide this?, or any one know api provide this data? anyone give me api to pull data from it? and if not found that how to get this data from any other sources
https://stackoverflow.com/questions/76710041/i-need-to-collect-demographic-data-based-on-location
database, dataset, bigdata, data-analysis, demographics
1,689,661,820
se_76705202
stackoverflow
DATA_SCIENCE
SQL Count by Year
SQL Count by Year I'm trying to write a query to compare the number of customers with visits and the number of customers who buy per year. If I do the query for the individual year without Group By, the number is correct, but I need it as a correct table in the system to be able to continue working with it. This is th...
https://stackoverflow.com/questions/76705202/sql-count-by-year
sql, sql-server, data-analysis
1,689,602,357
se_76704839
stackoverflow
DATA_SCIENCE
Creating/Manipulating a pandas dataframe from multiple lists?
Creating/Manipulating a pandas dataframe from multiple lists? I need to create a dataframe with four columns for further processing. Each column has a range from 0-100 with increments of 1 (those are percentages). That's the easy part. The not-so-easy part (for me. for others probably rather trivial) is, that the chec...
https://stackoverflow.com/questions/76704839/creating-manipulating-a-pandas-dataframe-from-multiple-lists
python, pandas, dataframe, data-analysis
1,689,599,622
se_76702738
stackoverflow
DATA_SCIENCE
How to transform table in Pandas (rows to columns)
How to transform table in Pandas (rows to columns) I have a dataframe in Pandas, which looks like this: metric all_areas area_1 area_2 team_1_count 30 31 31 team_1_sum 1146 536 308 team_2_count 38 38 41 team_2_sum 1146 536 308 I need to transform the table to be like this: is there any way to make i...
https://stackoverflow.com/questions/76702738/how-to-transform-table-in-pandas-rows-to-columns
pandas, dataframe, data-analysis
1,689,583,030
se_76657636
stackoverflow
DATA_SCIENCE
How to conduct a panel regression on this data in R?
How to conduct a panel regression on this data in R? In R I have a table "education": enter image description here (my full table is much larger, it has more countries, indicators and years I need to use panel regression in R to verify the hypothesis that a higher level of education leads to better health. I tried thi...
https://stackoverflow.com/questions/76657636/how-to-conduct-a-panel-regression-on-this-data-in-r
r, regression, data-analysis, panel-data
1,689,027,006
se_76672586
stackoverflow
DATA_SCIENCE
Algorithm to calculate x(y) with given x(t) and y(t) where x and y are sampled with different frequency
Algorithm to calculate x(y) with given x(t) and y(t) where x and y are sampled with different frequency I'm trying to plot a graph of x(y) where x(t) and y(t) are different measurements, coming from different devices. t is represented as unix timestamp at which the measurement was taken from the device, so example dat...
https://stackoverflow.com/questions/76672586/algorithm-to-calculate-xy-with-given-xt-and-yt-where-x-and-y-are-sampled-w
python, algorithm, math, data-analysis
1,689,178,485
se_70219758
stackoverflow
DATA_SCIENCE
.vcf data to pandas dataframe
.vcf data to pandas dataframe How can I convert this VCF data into a pandas dataframe? Note: The full file is not needed to replicate the problem. Just the first 50 lines (first part of gist link above) will do. Ideally I would like it in the form: Thus far I have only been able to get the headers: import pandas a...
https://stackoverflow.com/questions/70219758/vcf-data-to-pandas-dataframe
python, pandas, data-analysis, vcf-variant-call-format
1,638,559,796
se_76652306
stackoverflow
DATA_SCIENCE
Tag duplicates in pandas with serial number
Tag duplicates in pandas with serial number I am currently facing a problem with a large database. The database contains rows with information about customers, like their first names, dates of birth, tax IDs etc. The database is structured as follows: CustomerID FirstName LastName DoB VAT Number 1 Nick Jones ...
https://stackoverflow.com/questions/76652306/tag-duplicates-in-pandas-with-serial-number
python, pandas, database, duplicates, data-analysis
1,688,980,342
se_76651465
stackoverflow
DATA_SCIENCE
Using accumulate and/or cumsum properly for projections
Using accumulate and/or cumsum properly for projections I need to project each Z, W, Y value of each row in df1. To do this, I will use the growth rates in B from df2. df1: X Y year Z W V abc ab 2020 0.1 0.7 1.3 abc cd 2020 0.2 0.8 1.4 efg ef 2020 0.3 0.9 1.5 efg gh 2020 0....
https://stackoverflow.com/questions/76651465/using-accumulate-and-or-cumsum-properly-for-projections
r, data-analysis, cumsum, cross-join, accumulate
1,688,973,342
se_76647324
stackoverflow
DATA_SCIENCE
combine 2 df to make projections using previous result of the cross_join and growth rate
combine 2 df to make projections using previous result of the cross_join and growth rate In my previous question here, I did not consider to use the previous calculated value in order to produce the required projection with incremental growth rate (H). Two contributors corrected my previous intent. I used: mutate(cros...
https://stackoverflow.com/questions/76647324/combine-2-df-to-make-projections-using-previous-result-of-the-cross-join-and-gro
r, data-analysis, cross-join, rdata
1,688,903,531
se_76577835
stackoverflow
DATA_SCIENCE
using groupby on DataFrame in Pandas
using groupby on DataFrame in Pandas import pandas as pd df = pd.read_csv(r"C:\Users\Ouis AL-Hetar\Documents\TestEmployeeTable1.csv") sal= df.groupby("Department").sum("Salary").reset_index() sal.columns=["Dapartment","Sum_of_salary"] print(sal) when i treid run this code ir raise an Error: enter image description h...
https://stackoverflow.com/questions/76577835/using-groupby-on-dataframe-in-pandas
pandas, dataframe, data-analysis
1,688,008,050
se_76628404
stackoverflow
DATA_SCIENCE
Fit HLN formula in Origin
Fit HLN formula in Origin I have some problems with HLN fitting. enter image description here My formula as shown below (Labtalk script): psi_deriv=real_polygamma(x,k) k=0 y=(A1.2331470910^-5)(real_polygamma(0.5+1.6455704110^(-16)/(xL^2),1)-ln(1.6455704110^(-16)/(x*L^2))) However, when I try to evaluate, the caption s...
https://stackoverflow.com/questions/76628404/fit-hln-formula-in-origin
data-analysis, curve-fitting
1,688,643,277
se_76627215
stackoverflow
DATA_SCIENCE
Arranging top ten stations in R
Arranging top ten stations in R The data is the divvy bike trip data from Chicago in order to complete the case study in Coursera Data Analytics Professional Certificate. I wanted to sort stations in a descending order to find out which are the top 10 most popular stations. At first, I tried to arrange it, but since t...
https://stackoverflow.com/questions/76627215/arranging-top-ten-stations-in-r
r, sorting, data-analysis
1,688,634,438
se_76422308
stackoverflow
DATA_SCIENCE
Including survey/sampling weights into a latent profile analysis in R (preferrably with tidyLPA)?
Including survey/sampling weights into a latent profile analysis in R (preferrably with tidyLPA)? I want to do a latent profile analysis in R with survey data. As the survey oversampled a given region I would like to adjust for that in my LPA, by including sampling weights into the analysis. I'm currently using the ti...
https://stackoverflow.com/questions/76422308/including-survey-sampling-weights-into-a-latent-profile-analysis-in-r-preferrab
r, statistics, data-analysis
1,686,133,569
se_76601036
stackoverflow
DATA_SCIENCE
Category and subcategory tables in power bi matrix visualization
Category and subcategory tables in power bi matrix visualization I am looking for help to create a matrix visual in Power bi. I have several lookup and data tables.One of the sample table is Table Name|Category|Sub-category|data A | Type1 | Sub1 | 3 A | Type1 | Sub2 | 4 A | Type1 | Sub3...
https://stackoverflow.com/questions/76601036/category-and-subcategory-tables-in-power-bi-matrix-visualization
matrix, powerbi, data-analysis, powerbi-custom-visuals
1,688,337,397
se_76600947
stackoverflow
DATA_SCIENCE
How do i get the Total of a calculated measure removed in Power BI
How do i get the Total of a calculated measure removed in Power BI I calculated some MEASURES for my Power Bi visuals, my measure say "number of internet users" shows up a total of the values in the column. But i wish not to see the total of this measure in the visual. I have tried to use selectedvalue() of Power BI a...
https://stackoverflow.com/questions/76600947/how-do-i-get-the-total-of-a-calculated-measure-removed-in-power-bi
powerbi, dax, visualization, data-analysis
1,688,335,004
se_76597332
stackoverflow
DATA_SCIENCE
ValueError: Specified a sep and a delimiter; you can only specify one. roster = pd.read_csv(filepath,converters,usecols,index_col=“NetID”)
ValueError: Specified a sep and a delimiter; you can only specify one. roster = pd.read_csv(filepath,converters,usecols,index_col=“NetID”) filepath = “C:/Users/Kunwar Rajeev Singh/Desktop/DAILY PROJECTS/My Python projects/School Grading Pandas Practice/data/roster.csv” converters = {“NetID”:str.lower,“Email Address”:...
https://stackoverflow.com/questions/76597332/valueerror-specified-a-sep-and-a-delimiter-you-can-only-specify-one-roster
python, pandas, web-scraping, data-analysis, file-handling
1,688,269,488
se_76595421
stackoverflow
DATA_SCIENCE
I cannot bind rows in R
I cannot bind rows in R I'm just a beginner in R and I'm having trouble in a capstone project on the google analytics data certification. I have to analyze data from a fictional company from the last 12 months (I've chosen June22 to May 23), and after creating dataframes for each months, I'm trying to bind_rows to cre...
https://stackoverflow.com/questions/76595421/i-cannot-bind-rows-in-r
r, data-binding, data-analysis, bind-rows
1,688,226,081
se_76595700
stackoverflow
DATA_SCIENCE
What is the best way to aggregate granular data in PostgreSQL database for the data analysis?
What is the best way to aggregate granular data in PostgreSQL database for the data analysis? Please help us with ideas for the following case. Our startup e-commerce solution currently serves about 5,000 online shops, and the number is growing. Each shop sells several hundred unique products (let's say the mean is 30...
https://stackoverflow.com/questions/76595700/what-is-the-best-way-to-aggregate-granular-data-in-postgresql-database-for-the-d
postgresql, data-analysis, reporting, bi-tool
1,688,230,403
se_76560921
stackoverflow
DATA_SCIENCE
Slow code; search for keyword in column, then change value of entire cell accordingly
Slow code; search for keyword in column, then change value of entire cell accordingly I've been trying to learn Python Data Analytics by working on a little dataset of job postings. The dataset table consists of three columns; job title, country, and job description. Some of the cells in the job title column contains ...
https://stackoverflow.com/questions/76560921/slow-code-search-for-keyword-in-column-then-change-value-of-entire-cell-accord
python, pandas, numpy, dataset, data-analysis
1,687,825,124
se_32902832
stackoverflow
DATA_SCIENCE
What to do with missing values when plotting with seaborn?
What to do with missing values when plotting with seaborn? I replaced the missing values with NaN using lambda following function: data = data.applymap(lambda x: np.nan if isinstance(x, basestring) and x.isspace() else x) where data is the dataframe I am working on. Using seaborn afterwards, I tried to plot one of it...
https://stackoverflow.com/questions/32902832/what-to-do-with-missing-values-when-plotting-with-seaborn
python, python-2.7, pandas, data-analysis, seaborn
1,443,772,736
se_76577018
stackoverflow
DATA_SCIENCE
Converting Dates to &quot;YYYY&quot; format in Power Bi
Converting Dates to &quot;YYYY&quot; format in Power Bi the dates in this data are in number format so i can date back to previous year to calculate for say "% growth". I tried using DateAdd() of BI and Parralleldate() but the dates are not in the right format. Please who can help me sort out this problem I have got ...
https://stackoverflow.com/questions/76577018/converting-dates-to-yyyy-format-in-power-bi
datetime, powerbi, data-analysis
1,687,990,527
se_76581950
stackoverflow
DATA_SCIENCE
Python - generate columns with values based on a condition
Python - generate columns with values based on a condition I have some data like shown in the left side of the image with columns like group, date, open, close, exit. What I want to do is generate 2 more columns (like shown on the right) with date_open and date_close. The logic is that for each group, the date_open sh...
https://stackoverflow.com/questions/76581950/python-generate-columns-with-values-based-on-a-condition
python, python-3.x, pandas, dataframe, data-analysis
1,688,048,446
se_76571253
stackoverflow
DATA_SCIENCE
Formatting Date to correct format in Power BI, Excel
Formatting Date to correct format in Power BI, Excel How do you format date in power BI, excel, and PostgresSQL without changing other correct format. It seems the 1st to 3rd column is on Day-Month-Year, it doesn't recognize by excel as date instead as a number Thanks! I tried delimiter on power BI and excel but it d...
https://stackoverflow.com/questions/76571253/formatting-date-to-correct-format-in-power-bi-excel
excel, postgresql, powerbi, powerquery, data-analysis
1,687,940,036
se_76568090
stackoverflow
DATA_SCIENCE
Pandas resample method does not work properly
Pandas resample method does not work properly I have been analyzing the Seoul Bike Sharing Demand dataset, which is available at Seoul Bike Sharing Demand . During my analysis, I found the need to use a resampling method. To accomplish this, I loaded the dataset into a Pandas DataFrame, which I named df. Then, I appli...
https://stackoverflow.com/questions/76568090/pandas-resample-method-does-not-work-properly
python, pandas, data-analysis, pandas-resample
1,687,894,576
se_76568103
stackoverflow
DATA_SCIENCE
WHERE columnName IS NULL but Not Getting Expected Result
WHERE columnName IS NULL but Not Getting Expected Result I am only starting my first project for my portfolio and I am completely bamboozled... During my EDA, I noticed the continents column with NULL values are good for queries specifically about continents as the corresponding population column has the total figure ...
https://stackoverflow.com/questions/76568103/where-columnname-is-null-but-not-getting-expected-result
mysql, null, where-clause, data-analysis, exploratory-data-analysis
1,687,894,673
se_76566289
stackoverflow
DATA_SCIENCE
SQL: trying to figure out how to use an inner join to combine two separate tables into one
SQL: trying to figure out how to use an inner join to combine two separate tables into one I took a SQL course and am now trying to apply the lessons in practice but I can't seem to find out how to make it work. I have two tables that contain financial information about basketball teams by year. They share the same da...
https://stackoverflow.com/questions/76566289/sql-trying-to-figure-out-how-to-use-an-inner-join-to-combine-two-separate-table
sql, google-bigquery, relational-database, inner-join, data-analysis
1,687,878,603
se_76556141
stackoverflow
DATA_SCIENCE
How can I check a correlation between having a category and not having category?
How can I check a correlation between having a category and not having category? I have a machine learning project for predicting card approvals, based on application records. There are several columns in my dataset, categorical feature "Job" with some missing values (around 25%). My target variable called approval_st...
https://stackoverflow.com/questions/76556141/how-can-i-check-a-correlation-between-having-a-category-and-not-having-category
statistics, data-analysis
1,687,777,955
se_76521120
stackoverflow
DATA_SCIENCE
DataFrame filtering in Streamlit returns empty result for condition that works in Jupyter Notebook
DataFrame filtering in Streamlit returns empty result for condition that works in Jupyter Notebook I am developing a WhatsApp analysis web app using Streamlit. One of the functionalities of the app is to count the number of media messages in a given WhatsApp chat. To achieve this, I have a DataFrame containing the cha...
https://stackoverflow.com/questions/76521120/dataframe-filtering-in-streamlit-returns-empty-result-for-condition-that-works-i
python, pandas, data-analysis, whatsapp, streamlit
1,687,333,933
se_73607599
stackoverflow
DATA_SCIENCE
Use paste/paste0 for the &quot;key&quot; argument in gather()
Use paste/paste0 for the &quot;key&quot; argument in gather() I created a toy data frame to demonstrate my question: a = 0 df = data.frame(x = 1:2, y = 2:3, z = 3:4) df %>% gather(key = "name0", value = "val", -1) # this works fine df %>% gather(key = paste0("name", a), value = "val", -1) # but this gives an error Th...
https://stackoverflow.com/questions/73607599/use-paste-paste0-for-the-key-argument-in-gather
r, data-analysis, tidyr
1,662,371,886
se_76539974
stackoverflow
DATA_SCIENCE
Read Very Large xml file in R from Transport Simulation Outcome
Read Very Large xml file in R from Transport Simulation Outcome I have an xml file which is about 20GB from the outcome of a transport simulation software. The XML data looks something like this: <?xml version="1.0" encoding="utf-8"?> <events version="1.0"> <event time="10998.0" type="actend" person="pv_car_5315_9...
https://stackoverflow.com/questions/76539974/read-very-large-xml-file-in-r-from-transport-simulation-outcome
r, xml, dataframe, bigdata, data-analysis
1,687,522,111
se_76551066
stackoverflow
DATA_SCIENCE
Genetic algorithms in python, having trouble with cumulative returns
Genetic algorithms in python, having trouble with cumulative returns Cumulative return graphic as you can see in the image when i graphic the cumulative returns of the different portfolios over a year, the only one that starts over 1 is the "Overall", but the rest of portfolios start in 0. ``` #Calculate the cumulativ...
https://stackoverflow.com/questions/76551066/genetic-algorithms-in-python-having-trouble-with-cumulative-returns
python, data-analysis, genetic-algorithm
1,687,705,737
se_76541881
stackoverflow
DATA_SCIENCE
Suggestions for automating R script?
Suggestions for automating R script? I'm currently working on a data analysis project requiring two packages only available in R, and I already have a general script written for this. I want to automate this as much as possible for the org I am working for, so that they can run it without opening R and then receive th...
https://stackoverflow.com/questions/76541881/suggestions-for-automating-r-script
r, shell, automation, r-markdown, data-analysis
1,687,537,020
se_76534593
stackoverflow
DATA_SCIENCE
How do I create a function that takes the column means of a subset of a dataframe?
How do I create a function that takes the column means of a subset of a dataframe? Using this simpler dataframe below as an example, I was trying to take the mean for columns B and C for A = "hi" and for B = "bye." A <- c("hi", "bye", "hi", "hi", "bye") B <- c(1, 2, 1, 9, 4) C <- c(2, 5, 6, 1, 4) HiBye.df <- data.fra...
https://stackoverflow.com/questions/76534593/how-do-i-create-a-function-that-takes-the-column-means-of-a-subset-of-a-datafram
r, dataframe, vectorization, data-analysis
1,687,457,018
se_76527384
stackoverflow
DATA_SCIENCE
Any method of Replacing NaN values with already existing values
Any method of Replacing NaN values with already existing values I am working on a dataset in a Jupyter notebook. My dataset has two columns, 'State' and 'City' as you can see in image Now, State has some missing values in it, So I want to fill NaN data based on the already existing data in the dataset. For example, ...
https://stackoverflow.com/questions/76527384/any-method-of-replacing-nan-values-with-already-existing-values
python, pandas, dataframe, data-analysis, fillna
1,687,384,351
se_76535129
stackoverflow
DATA_SCIENCE
Converting mm/dd/yyyy date column string to yyyy-mm-dd in Databricks SQL
Converting mm/dd/yyyy date column string to yyyy-mm-dd in Databricks SQL I am trying to convert a date column which is in string type to date type in yyyy-mm-dd format but I am getting null as output in databricks SQL. I tried date(CAST(date_col as timestamp)) also I tried date(date_col) both are giving null sample C...
https://stackoverflow.com/questions/76535129/converting-mm-dd-yyyy-date-column-string-to-yyyy-mm-dd-in-databricks-sql
sql, data-analysis, databricks-sql
1,687,462,387
se_76530846
stackoverflow
DATA_SCIENCE
Should I use a t-test?
Should I use a t-test? I am comparing two sets of samples that are of different sizes (n) and are from two different populations. Both sets have undergone a similar intervention at different time periods (one from August to December and the other from January to April). Although both sets have treatment groups, this i...
https://stackoverflow.com/questions/76530846/should-i-use-a-t-test
excel, statistics, data-analysis, survey, statistical-test
1,687,428,879
se_76526777
stackoverflow
DATA_SCIENCE
get unique id, get latest date, get highest number and lowest number python pandas dataframe
get unique id, get latest date, get highest number and lowest number python pandas dataframe This is an example of my data ID purchaseDate numOfItemsPurchased 12 12-10-2023 2 12 12-01-2023 34 56 24-03-2020 12 23 23-12-2012 1 23 23-05-2012 3 23 23-06-2012 4 24 12-10-2023 24 38 23-02-2012 21 16 1...
https://stackoverflow.com/questions/76526777/get-unique-id-get-latest-date-get-highest-number-and-lowest-number-python-pand
python, pandas, dataframe, data-analysis
1,687,377,955
se_76525600
stackoverflow
DATA_SCIENCE
Grouped bar chart time series in R?
Grouped bar chart time series in R? I have a csv file in the format shown below. I would like to plot a grouped bar chart, where the four values (one for each of the four columns like great_deal, only_some, etc) for a given year are grouped next to each other in a time series. However, when I run the code below, it d...
https://stackoverflow.com/questions/76525600/grouped-bar-chart-time-series-in-r
r, ggplot2, graph, bar-chart, data-analysis
1,687,366,868
se_76517387
stackoverflow
DATA_SCIENCE
COUNT DATES in SQL
COUNT DATES in SQL So basically what I want is to count how many hours each person logged by day, my dataset looks something like this: name date logged_time_(h) Ana 05-01-2023 8 Ana 05-02-2023 6 Ana 05-03-2023 7 Peter 05-01-2023 7 Peter 05-02-2023 8 Peter 05-03-2023 5 My expected output is to c...
https://stackoverflow.com/questions/76517387/count-dates-in-sql
sql, google-bigquery, data-analysis
1,687,284,346
se_76503471
stackoverflow
DATA_SCIENCE
Python Pandas hypostesis: average rating for the &quot;expensive&quot; books. Need some help understatding the basic features of pandas
Python Pandas hypostesis: average rating for the &quot;expensive&quot; books. Need some help understatding the basic features of pandas I'm studying pandas now and having issues in understanding of basic features. I'm exploring this data set. There's a variable "Price (Above Average)" that contains "Yes" if the price ...
https://stackoverflow.com/questions/76503471/python-pandas-hypostesis-average-rating-for-the-expensive-books-need-some-he
python, pandas, data-analysis
1,687,145,674
se_76496847
stackoverflow
DATA_SCIENCE
Excel limited rows issue
Excel limited rows issue I am working on a bank loan analysis project and I am facing an issue with the number of rows in my "Previous_application.csv" file. It contains 1.6 million rows, which exceeds the limit of Excel (1 million rows). How can I manage this situation since I need to perform the analysis using Exce...
https://stackoverflow.com/questions/76496847/excel-limited-rows-issue
excel, data-analysis
1,687,014,856
se_76496960
stackoverflow
DATA_SCIENCE
Getting the max value for each index, pandas
Getting the max value for each index, pandas I have a database of people's ratings for movies. I want to get the genres with the highest mean rating for each age. 7 year olds like animation 50 year olds like sci-fi the most etc. df = pd.merge(pd.merge(ratings, users), movies) genre_group = df.groupby(["age", "genres"...
https://stackoverflow.com/questions/76496960/getting-the-max-value-for-each-index-pandas
python, pandas, sorting, indexing, data-analysis
1,687,016,904
se_76494920
stackoverflow
DATA_SCIENCE
Questions about ANOVA analysis in R of groups
Questions about ANOVA analysis in R of groups I'm doing ANOVA analysis on a dataset that looks like: ID cluster gender description country age 124 1 F SMALL US 32 324 1 M MEDIUM CA 12 82 5 F SMALL US 45 453 2 F LARGE AU 34 ... ... ... ... ... ... 473 3 M SMALL DK 32 172 4 M LARGE US 62 23 4 F LAR...
https://stackoverflow.com/questions/76494920/questions-about-anova-analysis-in-r-of-groups
r, statistics, data-analysis, anova
1,686,981,412
se_76484385
stackoverflow
DATA_SCIENCE
CAST date to number in order to do aggregate functions
CAST date to number in order to do aggregate functions So I want to make my log_work_started column that currently is in Date format to a numeric value in order to perform calculations later on. I am using the next query: SELECT Log_Work_started AS date FROM `data_mkt.marketing_jira`, ( SELECT Log_...
https://stackoverflow.com/questions/76484385/cast-date-to-number-in-order-to-do-aggregate-functions
sql, google-bigquery, data-analysis
1,686,852,201
se_76490664
stackoverflow
DATA_SCIENCE
Syntax for passing a variable in Apache Zeppelin from an Angular paragraph to a Pyspark paragraph?
Syntax for passing a variable in Apache Zeppelin from an Angular paragraph to a Pyspark paragraph? I’m trying to do a very simple thing – passing a variable (ideally an array, but string will do) from an Angular paragraph to a pyspark paragraph. Unfortunately I just get the result “None” when printing the value in pys...
https://stackoverflow.com/questions/76490664/syntax-for-passing-a-variable-in-apache-zeppelin-from-an-angular-paragraph-to-a
python, apache-spark, pyspark, data-analysis, apache-zeppelin
1,686,921,912
se_76490724
stackoverflow
DATA_SCIENCE
How can I get the total predicted for each factor level, and not for each observation?
How can I get the total predicted for each factor level, and not for each observation? I am working through a predictive analytics course, and I am having trouble getting a similar output with my data versus the output that was given in the sample code. My desired output is a prediction (in column d3hat) for each age...
https://stackoverflow.com/questions/76490724/how-can-i-get-the-total-predicted-for-each-factor-level-and-not-for-each-observ
r, data-analysis, prediction
1,686,922,511
se_76486349
stackoverflow
DATA_SCIENCE
How to use a function or variable when defining a separate cell
How to use a function or variable when defining a separate cell I am trying to create a dynamic pie chart with the following definition: SERIES(,'2023'!$B$39:$B$46,'2023'!$AA$39:$AA$46,1) Where $B$39:$B$46 is the legend range and $AA$39:$AA$46 is the data range. My question is how to define $AA$39:$AA$46 using a funct...
https://stackoverflow.com/questions/76486349/how-to-use-a-function-or-variable-when-defining-a-separate-cell
excel, vba, data-analysis
1,686,877,014
se_76477237
stackoverflow
DATA_SCIENCE
(BigQuery) Left join to gather lowest data from Left table that is greater than data from right table
(BigQuery) Left join to gather lowest data from Left table that is greater than data from right table I need to LEFT JOIN a table with only the lowest values in the right table that are greater than other values in the left table. I can do this with ROW_NUMBER and Subqueries but the issue is that I need to do the same...
https://stackoverflow.com/questions/76477237/bigquery-left-join-to-gather-lowest-data-from-left-table-that-is-greater-than
sql, google-bigquery, data-analysis
1,686,773,824
se_76474620
stackoverflow
DATA_SCIENCE
How can I get history subscriber count in Youtube? E.g. How to see what is the subscriber count at the end of 2022 vs 2023
How can I get history subscriber count in Youtube? E.g. How to see what is the subscriber count at the end of 2022 vs 2023 Apologies, if my question is unclear as I am new to this space. I am trying to do a data analysis project for my portfolio about youtube channel. I would like to compare the youtube channel growth...
https://stackoverflow.com/questions/76474620/how-can-i-get-history-subscriber-count-in-youtube-e-g-how-to-see-what-is-the-s
google-api, youtube-api, data-science, data-analysis, youtube-data-api
1,686,752,701
se_76145868
stackoverflow
DATA_SCIENCE
Not sure why my answer is not correct when calculating relationships in dataset
Not sure why my answer is not correct when calculating relationships in dataset I'm trying to find the average number of movies done together(as in per actor/director pair) per year of director's longevity (without modifying the original data or using calculated columns). Thanks to the helpful people here, I have this...
https://stackoverflow.com/questions/76145868/not-sure-why-my-answer-is-not-correct-when-calculating-relationships-in-dataset
powerbi, dax, data-analysis, analysis
1,682,932,760
se_76415974
stackoverflow
DATA_SCIENCE
How to include a rendered Rmarkdown HTML as an iframe in shiny
How to include a rendered Rmarkdown HTML as an iframe in shiny In Shiny, I want to include a rendered Rmarkdown HTML file that changes with a date parameter. The Rmarkdown includes an interactive table created with the DT package. As there is incompatibility between the includeHTML and DT functions, I am including the...
https://stackoverflow.com/questions/76415974/how-to-include-a-rendered-rmarkdown-html-as-an-iframe-in-shiny
html, r, shiny, data-analysis
1,686,063,738
se_76430045
stackoverflow
DATA_SCIENCE
Data Profiling using Pyspark
Data Profiling using Pyspark I'm trying create a PySpark function that can take input as a Dataframe and returns a data-profile report. I already used describe and summary function which gives out result like min, max, count etc. but I need a detailed report like unique_values and have some visuals too. If anyone know...
https://stackoverflow.com/questions/76430045/data-profiling-using-pyspark
dataframe, pyspark, data-analysis, aws-glue, data-profiling
1,686,213,537
se_76447964
stackoverflow
DATA_SCIENCE
Which type of statistical analysis to run in R with 2 treatment types in my study?
Which type of statistical analysis to run in R with 2 treatment types in my study? Screenshot of Data I have a seed germination study that I am trying to analyze. In this study I had 4 different media types (nutritious agar plus different vitamins/additives) with 40 plates each. Each group of 40 plates was split into ...
https://stackoverflow.com/questions/76447964/which-type-of-statistical-analysis-to-run-in-r-with-2-treatment-types-in-my-stud
r, statistics, data-analysis, anova, manova
1,686,427,265
se_76436688
stackoverflow
DATA_SCIENCE
How can I force my calculated covariance matrix to be positive definite? _LinAlgError: linalg.cholesky
How can I force my calculated covariance matrix to be positive definite? _LinAlgError: linalg.cholesky I am attempting to use Gaussian process regression to estimate a function with two inputs and one output. I know the following about my function: if x1 == x2, then f(x1, x2) = 0 if f(x1, x2) = y, then f(x2, x1) = -y...
https://stackoverflow.com/questions/76436688/how-can-i-force-my-calculated-covariance-matrix-to-be-positive-definite-linalg
python, pytorch, data-analysis, linear-algebra, gaussian-process
1,686,275,026
se_76434577
stackoverflow
DATA_SCIENCE
Odds Ratio - how many times more likely?
Odds Ratio - how many times more likely? Problem: I need to figure out how many times are women more likely to continue attending a class after a certain period of time. Data: Solution: I used odds ratio (see picture). Is it correct to assume that women are 2.8 times more likely to continue with the class compare to ...
https://stackoverflow.com/questions/76434577/odds-ratio-how-many-times-more-likely
statistics, data-analysis, probability
1,686,247,452
se_76434041
stackoverflow
DATA_SCIENCE
Generating/collecting URLs from &quot;NEO Earth Close Approaches&quot; database to link to Orbit Viewer
Generating/collecting URLs from &quot;NEO Earth Close Approaches&quot; database to link to Orbit Viewer I'm working on a personal project utilizing data from the NEO Earth Close Approaches database. I'm cleaning/prepping the dataset with pandas to be used within a Tableau Viz, but I am very curious to hear how others ...
https://stackoverflow.com/questions/76434041/generating-collecting-urls-from-neo-earth-close-approaches-database-to-link-to
python, pandas, data-analysis
1,686,242,546
se_76432305
stackoverflow
DATA_SCIENCE
ValueError when attempting to concatenate Pandas dataframes by reading CSV into multip chunks
ValueError when attempting to concatenate Pandas dataframes by reading CSV into multip chunks I have loaded csv file into pandas dataframe with 5 chunk because chunk is useful while displaying large dataset at once. It prints 5 rows in each iteration. Here is my code of dividing dataframe into chunk and displaying the...
https://stackoverflow.com/questions/76432305/valueerror-when-attempting-to-concatenate-pandas-dataframes-by-reading-csv-into
python, pandas, dataframe, data-analysis, valueerror
1,686,230,565
se_76429880
stackoverflow
DATA_SCIENCE
Scaleable M code to create n number of columns based on the unique values in a column?
Scaleable M code to create n number of columns based on the unique values in a column? I have a large dataset filled with customer purchase data. There are two columns that are of specific interest to me: the date of a purchase and the order of the purchase (1 means it was the customer's first purchase, 2 means it was...
https://stackoverflow.com/questions/76429880/scaleable-m-code-to-create-n-number-of-columns-based-on-the-unique-values-in-a-c
data-structures, powerquery, data-analysis, m, dummy-variable
1,686,212,003
se_76408403
stackoverflow
DATA_SCIENCE
Why I&#39;m not getting scrape data by using my method?
Why I&#39;m not getting scrape data by using my method? I used BeautifulSoup. there are 600 + products but I'm only getting 9. Can you please help me to get all the data? I'm also sharing code for reference for i in range (1,64): url = 'https://www.lenskart.com/eyeglasses/marketing/vc-air-bestseller-eyeglasses.html?pa...
https://stackoverflow.com/questions/76408403/why-im-not-getting-scrape-data-by-using-my-method
web-scraping, data-analysis
1,685,982,868
se_76420366
stackoverflow
DATA_SCIENCE
How to calculate CAGR Compound Annual Growth Rate if the starting value is Zero?
How to calculate CAGR Compound Annual Growth Rate if the starting value is Zero? I am trying to calculate the CAGR for the total visitors here. The formula is as follows: Formula Now, for the districts where the initial visitors are 0 or Null there there is error showing when calculating the CAGR as we are dividing it...
https://stackoverflow.com/questions/76420366/how-to-calculate-cagr-compound-annual-growth-rate-if-the-starting-value-is-zero
excel, data-analysis, finance
1,686,118,749
se_76323413
stackoverflow
DATA_SCIENCE
How to resolve &#39;Kibana server not ready yet&#39; error when accessing localhost:5601 while Elasticsearch is already running?
How to resolve &#39;Kibana server not ready yet&#39; error when accessing localhost:5601 while Elasticsearch is already running? when i open localhost:5601 they say "kibana server is not ready yet" if they are any information [2023-05-24T13:02:15.057+01:00][INFO ][root] Holding setup until preboot stage is completed....
https://stackoverflow.com/questions/76323413/how-to-resolve-kibana-server-not-ready-yet-error-when-accessing-localhost5601
elasticsearch, bigdata, kibana, data-analysis
1,684,930,351
se_76411225
stackoverflow
DATA_SCIENCE
Time intelligence measures disappearing depending on filter selection. Why?
Time intelligence measures disappearing depending on filter selection. Why? I have the following Measure: Events = COUNTROWS('Event Data') Custom columns in a Date table: DatesWithEvents = 'Date Dimension'[Date] <= MAX('Event Data'[DOE]) ExcludeFutureDates = 'Date Dimension'[Date] <= TODAY() enter code here The fol...
https://stackoverflow.com/questions/76411225/time-intelligence-measures-disappearing-depending-on-filter-selection-why
powerbi, data-analysis, powerbi-desktop, measure
1,686,021,221
se_76400877
stackoverflow
DATA_SCIENCE
What is the optimal approach to separate and transform multiple country codes into a dimension table in Power BI?
What is the optimal approach to separate and transform multiple country codes into a dimension table in Power BI? I am working on a project in power bi when I making the data modeling, one of the columns has multiple values about country code, I want to separate them and then transform them into a dimension table. [en...
https://stackoverflow.com/questions/76400877/what-is-the-optimal-approach-to-separate-and-transform-multiple-country-codes-in
powerbi, data-analysis, data-modeling
1,685,889,031
se_76402400
stackoverflow
DATA_SCIENCE
Different graph results when using ggplot vs when using base R functions?
Different graph results when using ggplot vs when using base R functions? I am creating some simple graphs for a project in R. I got unexpected results when using the ggplot2 package, and so I defaulted back to base R. When recreating the plot in base R, I got the correct result. Now I am just wondering why different ...
https://stackoverflow.com/questions/76402400/different-graph-results-when-using-ggplot-vs-when-using-base-r-functions
r, ggplot2, plot, data-analysis, graphing
1,685,912,614
se_76399434
stackoverflow
DATA_SCIENCE
What am I missing for time intelligence to work?
What am I missing for time intelligence to work? This measure returns 5, which is correct Count = COUNTROWS('Fact') This measure however returns zero results Count MTD = CALCULATE(COUNTROWS('Fact'), DATESMTD('Date'[Date])) What am I missing? Do I need additional columns in my database model? Is the formatting incorr...
https://stackoverflow.com/questions/76399434/what-am-i-missing-for-time-intelligence-to-work
powerbi, dax, data-analysis, powerbi-desktop
1,685,865,380
se_76398796
stackoverflow
DATA_SCIENCE
How to calculate the total amount per claim number using sumif in excel
How to calculate the total amount per claim number using sumif in excel I have the data where there are claim numbers and then one claim number can have multiple payment. so I am trying to calculate the total amount per claim by creating a new column. Basically try to do this sum(payment amunt) over(partition by claim...
https://stackoverflow.com/questions/76398796/how-to-calculate-the-total-amount-per-claim-number-using-sumif-in-excel
excel, excel-formula, data-analysis
1,685,848,016
se_76394753
stackoverflow
DATA_SCIENCE
How to add time intelligence columns instead of years? For multiple measures
How to add time intelligence columns instead of years? For multiple measures I have a large number of measures displaying in rows. How would I go about adding MTD, YTD, CY, PY etc columns where I've currently got years displaying? Eg. do I need to create a MTD measure for each measure? And also, how would I go about a...
https://stackoverflow.com/questions/76394753/how-to-add-time-intelligence-columns-instead-of-years-for-multiple-measures
powerbi, data-analysis, powerbi-desktop, measure
1,685,772,171
se_56153500
stackoverflow
DATA_SCIENCE
Problem with parameters of ROOT TF1 function declaration
Problem with parameters of ROOT TF1 function declaration I use a user-defined function to fit a data set in ROOT. The TF1 class declaration in my code is: double t=1000; double a=0.1*t, b=0.9*t; ... TF1 *ffit = new TF1("ffit",fit,a,b,2); ffit->FixParameter(0,t); ffit->SetParameter(1,1); ... TGraph *g = new TGraph(n,x...
https://stackoverflow.com/questions/56153500/problem-with-parameters-of-root-tf1-function-declaration
c++, data-analysis, root-framework
1,557,936,205
se_76375564
stackoverflow
DATA_SCIENCE
How to determine correlation between two 2D arrays?
How to determine correlation between two 2D arrays? I am trying to find a correlation between two 2D arrays. These arrays represent the characteristics of the system based on two parameters: voltage and magnetic field. Essentially, I want to determine if there is any correlation between changes in one matrix compared ...
https://stackoverflow.com/questions/76375564/how-to-determine-correlation-between-two-2d-arrays
matlab, statistics, data-analysis, correlation
1,685,550,248
se_76372768
stackoverflow
DATA_SCIENCE
Search in multiple Columns with isin function in Pandas
Search in multiple Columns with isin function in Pandas I want to search, if my date in one dataframe is existing in one of multiple columns of another dataframe, because here are more than one date columns. When I want to search in one column I did this: df = df.assign(InDatum=df.Datum.isin(KBlatt.erdat).astype(int))...
https://stackoverflow.com/questions/76372768/search-in-multiple-columns-with-isin-function-in-pandas
python, pandas, data-analysis, data-cleaning
1,685,530,690
se_76355985
stackoverflow
DATA_SCIENCE
missing columns for ydata-profiling correlation report
missing columns for ydata-profiling correlation report I'm using ydata-profiling (the evolution of pandas-profiling) to compute correlation among columns of large datasets (e.g. 400411 rows and 27 columns). These are configurations in config.yaml: correlations: pearson: calculate: false warn_high_corre...
https://stackoverflow.com/questions/76355985/missing-columns-for-ydata-profiling-correlation-report
dataframe, data-analysis, correlation, pandas-profiling
1,685,351,057
se_76369493
stackoverflow
DATA_SCIENCE
Can I use an aggregate function in the ORDER BY clause that was not aforedmentioned in the SELECT statement?
Can I use an aggregate function in the ORDER BY clause that was not aforedmentioned in the SELECT statement? (for solution A) I just need someone to help confirm/deny whether the way I use an aggregate function in the ORDER BY clause is allowed, considering that I have not mentioned this specific aggregate function in...
https://stackoverflow.com/questions/76369493/can-i-use-an-aggregate-function-in-the-order-by-clause-that-was-not-aforedmentio
sql, postgresql, syntax, query-optimization, data-analysis
1,685,494,849
se_76359424
stackoverflow
DATA_SCIENCE
Filtering Motion Data in Python by Maximum Position for each Time Period
Filtering Motion Data in Python by Maximum Position for each Time Period I am trying to filter data points by time and position in python so that only the highest position for each second of time is left in the data set. So here is the situation, I used a motion sensor to record the oscillations of a spring/mass syste...
https://stackoverflow.com/questions/76359424/filtering-motion-data-in-python-by-maximum-position-for-each-time-period
python, pandas, data-analysis, curve-fitting, data-cleaning
1,685,382,891
se_76279117
stackoverflow
DATA_SCIENCE
SQL BigQuery: Querying job execution logs
SQL BigQuery: Querying job execution logs I am trying to get a rough estimate of how my ETL pipeline is performing per execution as well as on a daily basis. I am querying the BQ job history and doing some minor aggregation in order to get my values for estimated cost, average execution run time, GB billed, slot time,...
https://stackoverflow.com/questions/76279117/sql-bigquery-querying-job-execution-logs
sql, google-bigquery, etl, pipeline, data-analysis
1,684,399,354
se_76344593
stackoverflow
DATA_SCIENCE
Is there something I can add into my formula to autofill my cell range in increments of 12 instead 0f 1?
Is there something I can add into my formula to autofill my cell range in increments of 12 instead 0f 1? Formula autofill help Hello, I'm learning excel and for work I need to combined large chunks of data from one sheet to another. I came up with the formula =SUM('940748 SB Class 05-08-23'!F1:F12) in the second sheet...
https://stackoverflow.com/questions/76344593/is-there-something-i-can-add-into-my-formula-to-autofill-my-cell-range-in-increm
excel, excel-formula, data-analysis, autofill
1,685,141,618
se_76287760
stackoverflow
DATA_SCIENCE
What does &#39; ::Page{} &#39; do in R/RStudio?
What does &#39; ::Page{} &#39; do in R/RStudio? What does ::Page{} do in R/RStudio ? I'm studying Data Science through IBM certification course in coursera and the notes contain this line of code in all the code blocks and no explanation to what the "Page" function is doing #load ggplot package library(ggplot2) ::pa...
https://stackoverflow.com/questions/76287760/what-does-page-do-in-r-rstudio
r, data-science, data-analysis
1,684,488,501
se_76339859
stackoverflow
DATA_SCIENCE
Is there any method for access the content in SDCARD
Is there any method for access the content in SDCARD I am currently working in sdcard detection in android studio in that I already access the directory of sdcard but I can't able to access the sdcard content it provide null exeception. code line: File[] path = new File("/mnt/sdcard0").listFiles(); sdFiles g...
https://stackoverflow.com/questions/76339859/is-there-any-method-for-access-the-content-in-sdcard
java, android, arrays, data-analysis, sonata-admin
1,685,096,247
se_25100168
stackoverflow
DATA_SCIENCE
Large Data Analytics
Large Data Analytics I'm trying to analyze a large amount of GitHub Archive Data and am stumped by many limitations. So my analysis requires me too search a 350GB Data set. I have a local copy of the data and there is also a copy available via Google BigQuery. The local dataset is split up into 25000 individual files...
https://stackoverflow.com/questions/25100168/large-data-analytics
python, database, bigdata, google-bigquery, data-analysis
1,407,020,652
se_75260770
stackoverflow
DATA_SCIENCE
How to add the row names to my `gt()` table?
How to add the row names to my `gt()` table? I don't know how to add the row names that are included in my dataframe to my gt() table I firstly, created a dataframe including the output from a drop1 command (which is used for model selection): the code: drop1_output <- drop1(model, test = "Chi") Creating a dataframe l...
https://stackoverflow.com/questions/75260770/how-to-add-the-row-names-to-my-gt-table
model, data-analysis
1,674,836,670
se_76311872
stackoverflow
DATA_SCIENCE
Can a star schema be implemented for descriptive-only data in Power BI?
Can a star schema be implemented for descriptive-only data in Power BI? Can you implement a star schema for data that is descriptive only and not quantitative? I've taken a Udemy course on Power BI and learned that FACT tables consists of quantitative data and foreign keys. I have a catalogue of online courses (course...
https://stackoverflow.com/questions/76311872/can-a-star-schema-be-implemented-for-descriptive-only-data-in-power-bi
data-analysis, powerbi-desktop, star-schema
1,684,823,625
se_59411216
stackoverflow
DATA_SCIENCE
Python Traceback Error When Reading Json File
Python Traceback Error When Reading Json File I just extracted my all my tweeter history in a json file. so I want to do some data analysis on the tweets with python. I open the terminal and and entered the following commands to dump json from from python. >>> import json >>> with open('tweet.js') as json_file: ... ...
https://stackoverflow.com/questions/59411216/python-traceback-error-when-reading-json-file
python, json, data-analysis, tweets
1,576,763,815
se_76303347
stackoverflow
DATA_SCIENCE
Inputs are not updated after using eventReactive
Inputs are not updated after using eventReactive In shiny, I am creating an app that generates reports based on the inputs that the user selects. The reports are created when the user clicks the button "generate". There are three types of inputs: (1) "input_type": a SelectInput that is used to let the user select whic...
https://stackoverflow.com/questions/76303347/inputs-are-not-updated-after-using-eventreactive
r, shiny, report, data-analysis
1,684,734,881
se_76300795
stackoverflow
DATA_SCIENCE
How to get maxium value of a group and corresponding value from another column of the original dataset using dplyr
How to get maxium value of a group and corresponding value from another column of the original dataset using dplyr I have a dataset which is: fire_data <- data.frame(Year = c(2022,2022,2022,2022,2022,2022,2022,2022,2022,2022, 2022,2022,2022,2022,2022,2022,2022,2022,2022,2022,2022,2022, 2022,2022,2022,2022,2022,2022,20...
https://stackoverflow.com/questions/76300795/how-to-get-maxium-value-of-a-group-and-corresponding-value-from-another-column-o
r, dplyr, data-analysis
1,684,685,284
se_76298538
stackoverflow
DATA_SCIENCE
How can I use pandas to fill missing prices in my product table based on delivery dates and dates the price was given to that product?
How can I use pandas to fill missing prices in my product table based on delivery dates and dates the price was given to that product? I have a table of products with their names, receipt dates, prices and DATE OF GIVEN PRICE. However value of price is given only in one cell. I have to fill prices for products that we...
https://stackoverflow.com/questions/76298538/how-can-i-use-pandas-to-fill-missing-prices-in-my-product-table-based-on-deliver
python, pandas, datatables, data-analysis, missing-data
1,684,649,774
se_69937625
stackoverflow
DATA_SCIENCE
Groupby data in Pandas to label my pie chart
Groupby data in Pandas to label my pie chart I have using groupby in Pandas, df_0 = df_find_quality_und.groupby("user score").size() df_0 and get this output; Output: user score 3.0 14 7.0 2 7.1 1 7.2 2 7.3 1 7.5 1 7.7 1 7.8 2 7.9 1 8.0 1 8.1 2 8.3 1 8.7 1 dtype: int...
https://stackoverflow.com/questions/69937625/groupby-data-in-pandas-to-label-my-pie-chart
python, pandas, database, group-by, data-analysis
1,636,687,847
se_76290407
stackoverflow
DATA_SCIENCE
Troubleshooting &#39;Notebook validation failed: data.cells&#39; error in Jupyter Notebook
Troubleshooting &#39;Notebook validation failed: data.cells&#39; error in Jupyter Notebook How to resolve the error "Notebook validation failed: data.cells[{data__cells_x}] must be valid exactly by one definition (0 matches found)" in Jupyter Notebook? How can I resolve the "Notebook validation failed: data.cells[{dat...
https://stackoverflow.com/questions/76290407/troubleshooting-notebook-validation-failed-data-cells-error-in-jupyter-notebo
python, error-handling, jupyter-notebook, data-science, data-analysis
1,684,509,545
se_72747566
stackoverflow
DATA_SCIENCE
Find the column value based on condition
Find the column value based on condition I need to find unique name, whose age=2 and and cond=9 using python pandas? name age cond cc a 2 9 3 b 2 8 2 c 3 9 1 a 2 9 6
https://stackoverflow.com/questions/72747566/find-the-column-value-based-on-condition
python, pandas, data-analysis
1,656,091,934
se_76273332
stackoverflow
DATA_SCIENCE
Cleaning Unstructured PDF data
Cleaning Unstructured PDF data Raw Data: Given is a PDF data containing the student placement details of a university. It is in a completely unstructured form and needs to be cleaned up before processing. The Expected CSV file output: I tried importing the pdf from inside an excel spreadsheet. Tried converting it to...
https://stackoverflow.com/questions/76273332/cleaning-unstructured-pdf-data
python, web-scraping, data-analysis, data-cleaning, pdf-scraping
1,684,334,472
se_76274562
stackoverflow
DATA_SCIENCE
Manipulating focused spreadsheets with python
Manipulating focused spreadsheets with python I'm working on a project and want to be able to manipulate data (add, remove, stylize etc.) of an open spreadsheet with python. Is there a way to do this or do I need to enter the file path to work with the spreadsheet? For example, let's say I have multiple spreadsheets o...
https://stackoverflow.com/questions/76274562/manipulating-focused-spreadsheets-with-python
python, excel, windows, automation, data-analysis
1,684,343,075
se_75489814
stackoverflow
DATA_SCIENCE
Google Cloud (Bigquery Dataset)
Google Cloud (Bigquery Dataset) this shows up when I try to Create dataset "You must have the 'bigquery.datasets.create' permission on the selected project." how can I get arround it and thanks. I am trying to Create a new dataset using bigquery
https://stackoverflow.com/questions/75489814/google-cloud-bigquery-dataset
windows, cloud, data-analysis
1,676,673,262
se_76249396
stackoverflow
DATA_SCIENCE
Efficient and Scalable Way to Handle Time Series Analysis with Large Datasets in Python
Efficient and Scalable Way to Handle Time Series Analysis with Large Datasets in Python I'm working with a very large dataset (over 100 million rows) of time-series data in Python. Each row represents a separate event with a timestamp, and there are multiple events for each timestamp. I need to perform analysis on thi...
https://stackoverflow.com/questions/76249396/efficient-and-scalable-way-to-handle-time-series-analysis-with-large-datasets-in
python, pandas, performance, time-series, data-analysis
1,684,093,566