Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
0 votes
0 answers
34 views

Why data that are being written to excel are not starting from the 'A' column?

I'm using pandas to copy data from one excel to another and the data are being copied just not at the right place. I have this function that reads the data: def updated_file(self, progress_bar): ...
Jugert Mucoimaj's user avatar
0 votes
0 answers
21 views

Is using a Pandas Dataframe as a read-only table scalable in a Flask App?

I'm developing a small website in Flask that relies on data from a CSV file to output data to a table on the frontend using JQuery. The user would select an ID from a drop-down on the front-end, then ...
GreenGodot's user avatar
  • 6,580
1 vote
1 answer
26 views

Python Pandas difference in boolean indexing between ~ != and ==

I am confused about different results of boolean indexing when using ~ after != versus when using just == I have a pandas df with 4 columns: dic = { "a": [1,1,1,0,0,1,1], "b&...
Martin's user avatar
  • 25
0 votes
0 answers
9 views

FutureWarning in emobpy: incompatible dtype assignment with Pandas DataFrame

I am using the emobpy library to set custom rules for a mobility analysis, but I encounter a FutureWarning about incompatible data types when trying to modify DataFrame items. Here's the problematic ...
OUSSAMA ZIADI's user avatar
-1 votes
1 answer
32 views

how do you merge values in rows, replace nan values in pandas

I am doing some manipulation on a data frame: df Node Interface Speed carrier 1-May 9-May 2-Jun 21-Jun Server1 internet1 10 ATT 20 30 ...
user1471980's user avatar
  • 10.5k
0 votes
0 answers
21 views

text_auto Parameter Not Working in Plotly

The text_auto parameter for a Plotly Express bar chart is not functioning for me, despite seemingly correct syntax. I am using both Jupyter Notebook and Eclipse and the issue persists in both. Plotly ...
Lysyd's user avatar
  • 1
0 votes
2 answers
41 views

Sort Pandas dataframe by Sub Total and count

I have a very large dataset called bin_df. Using pandas and the following code I've assigned sub-total "Total" to each group: bin_df = df[df["category"].isin(model....
Charlotte's user avatar
  • 411
0 votes
3 answers
56 views

How to find rows with value on either side of a given value?

Python, Pandas, I have a dataframe containing datetimes and values. # Create an empty DataFrame with 'timestamp' and 'value' columns df = pd.DataFrame(columns=['timestamp', 'value']) df.set_index('...
Dave's user avatar
  • 401
-1 votes
1 answer
31 views

pd.to_datetime() not consistently working to convert objects

I have been working with this data (csv) that exists in an AWS S3 bucket. When I am pulling the data I have to transform all the columns to their correct dtypes. All other dtypes are working properly ...
Keegan Husom's user avatar
1 vote
1 answer
67 views

How can I filter df “A” using as a condition a comparison to df “B”?

I’ve got 2 dataframes, dfA and dfB, with different shapes and with different orders. dfA is contained in dfB. There are 3 columns in this example, “Job Title”, “Job Department” and “Job Salary”. dfA ...
Alex's user avatar
  • 17
-1 votes
0 answers
30 views

Index into fields of a DataFrame row without needing a row index? [duplicate]

In pandas, is there a way to work with one row of a DataFrame at a time, and for each row, indexing into the columns by name but without indexing into the rows? My current approach is (say) modifying ...
user2153235's user avatar
  • 1,052
-5 votes
0 answers
39 views

Pandas .isin returns an empty dataframe even though I know the data is there [closed]

I have two dataframes, one titled small and one titled big. Small has a column called 'Part Number' while big has columns called 'fpartno' and 'fgroup'. I want to find all values in the 'Part Number' ...
Karl Boma's user avatar
-1 votes
0 answers
44 views

How to split a info in a single row in excel into columns using python [duplicate]

I have read a CSV file using pd.read_csv() I am trying to clean up this data but it is proving a bit difficult. Essentially all of the information is in a single column and row 1 and I need to split ...
rogue1's user avatar
  • 1
2 votes
3 answers
57 views

How to convert JSONL to parquet efficiently?

Given a jsonl file like this: {"abc1": "hello world", "foo2": "foo bar"} {"foo2": "bar bar blah", "foo3": "blah foo"} ...
alvas's user avatar
  • 120k
0 votes
0 answers
29 views

Python threads 'starved' by pandas operations

I am creating a UI application with Qt in Python. It performs operations on pandas DataFrames in a separate threading.Thread to keep the UI responsive; no individual pandas instruction takes noticable ...
AirToTec's user avatar

15 30 50 per page
1
2 3 4 5
16552