Skip to main content
AI Assist is now on Stack Overflow. Start a chat to get instant answers from across the network. Sign up to save and share your chats.
Filter by
Sorted by
Tagged with
2 votes
2 answers
60 views

I have a MultiIndex table as follows Index0 Index1 Variable A 0 "a" A 1 "x" A 2 "t" B 0 "x" B 1 ...
The Stackoverflow User's user avatar
-1 votes
0 answers
54 views

When I run this command on the virtual environment it gives this error. ninja: error: pandas/_libs/ops_dispatch.cp312-win_amd64.pyd.p/pandas/_libs/ops_dispatch.pyx.c.dep: no outputs declared ...
Sudam Ranasinghe's user avatar
-1 votes
0 answers
35 views

I'm writing some automated electrical tests for a piece of equipment and am trying to figure out a good way to continuously display the data to the user. The program will perform ~50 tests each with a ...
Robert Goodkin's user avatar
Best practices
1 vote
2 replies
51 views

I am trying to merge two pandas dataframes together that have a MultiIndex on the columns. This works as expected when there are no duplicate columns, however when there are duplicate columns, it ...
Simon Pratt's user avatar
0 votes
0 answers
19 views

I've noticed that Facebook's Prophet function does a good job with forecasting. However, for my data, it never starts at the last value of y-predict. As you can see in the image, the last value of ...
Gustav Matsson's user avatar
1 vote
1 answer
97 views

I'm trying to read a csv file and write to an oracle database table. The csv file looks like this: "id_field","last_updated_date" "123456",2021-08-07 16:26:45.299 The ...
James Morris's user avatar
2 votes
1 answer
69 views

Summary: I want to be able to recreate my SQL code via Python such that I dont have to manually type out each join for situations when the combinations get too large to handle I have one table import ...
qwerty12's user avatar
3 votes
1 answer
43 views

I try to load many different csv files and data check them with GreatExpecatations. It works for ExpectColumnValuesToNotBeNull, ExpectColumnValuesToBeUnique and ExpectColumnValuesToMatchRegex. But ...
Usal's user avatar
  • 75
Best practices
1 vote
2 replies
75 views

I’m new to pandas and dataframes and am trying to understand two approaches: Firstly, the setup: import pandas as pd # Example DataFrames df1 = pd.DataFrame({ 'id': [1, 2, 3], 'name': ['Alice'...
Michelle's user avatar
-2 votes
1 answer
50 views

I have a pandas DataFrame with a 'toy' and 'color' column, which includes missing color values. I want to fill these NaNs with the most frequent color for their corresponding 'toy' type. import pandas ...
Abhijit Kakchingtabam's user avatar
0 votes
1 answer
71 views

I am working with a Pandas DataFrame containing student data (GRE scores, TOEFL scores, etc.). I need to sort this DataFrame based on a specific column, but the column name is provided by the user as ...
Ankit Verma's user avatar
3 votes
4 answers
146 views

I downloaded some data from a data repository to do some analysis, and it is in a format that I have never seen and do not know how to work with. import pandas as pd raw={ 'Fill':['text','','','...
Mac McMahan's user avatar
-1 votes
1 answer
88 views

I am having a problem to put an entire row from data in a list import pandas as pd import numpy as np import csv df= pd.read_csv ("data.csv") my_list = [] # list for n in range(1, ...
Kan's user avatar
  • 35
0 votes
0 answers
93 views

I am trying to use the Kiwoom OpenAPI (for making automated stock trading program), which requires a 32-bit Python environment. However, to successfully use Kiwoom Open API I need to set up pandas in ...
Fish Red's user avatar
2 votes
3 answers
130 views

I have a dataFrame with columns Age, Salary and others, if I used: df['Age'] = df['Age'].apply(lambda x : x+100 if x>30 else 0) Then I can modify the Age column with the if else condition. Also, if ...
Edy's user avatar
  • 33

15 30 50 per page
1
2 3 4 5
19283