A CsvReader represents a reader that provides forward-only access to a CSV text data source. A CsvReader may also support other delimited-separator formats.
Questions tagged [csvreader]
172 questions
0
votes
0 answers
Don't know how to resolve my bad encoding when reading a csv file in php?
I want to read a csv file and put the data in a mysql database. The problem is that the "é" is badly encoded. I try to put this header :
header('Content-Type: text/html; charset=UTF-8');
But It didn't work.
Here is my code, the problème is on…

Alex
- 11
- 1
0
votes
1 answer
Selenium Webdriver not reading CSV file using CSVReader
I am executing a script for a Salesforce page flow with Chrome Webdriver. The flows are written in Selenium JUnit code, exported and executed as JAR (JUnit Request Sampler) in JMeter 5.4.1. The page has a pop-up which has a textbox. which should…

Purbita Ghosh
- 11
- 3
0
votes
0 answers
CsvReader not waiting in async/await block - solved
I am using csvReader with nestjs and have the function in the 'on' event flagged as async and the save to DB marked with await.
The 'on' event does not appear to wait for the save to complete and prints log messages after processing the file.
The…

Chris Hunter-Johnson
- 414
- 5
- 19
0
votes
1 answer
pd.csv_read Problem with comma & dot when import because of the 2nd line, no idea WHY?
I have a .txt file (23820 rows × 300 columns). It is '\t' seperated and the decimal is ','
When reading it in with csv_read, nearly every column in my file should be a float but it totally messes it up. I don't get float data (which has a dot as…

Rabinzel
- 7,757
- 3
- 10
- 30
0
votes
1 answer
Problem about getting data from an online csv and put them into a Django database (Updated)
scripts\loadDateData.py
import csv
import urllib.request
from database.models import locationData, dateData
def run():
target = locationData.objects.get (pk = 1)
url = target.resourceURL
headers = {'User-Agent':'Mozilla/5.0 (Windows NT…
user14595256
0
votes
1 answer
Only read csv if the first 5 lines exist
I have the following source code.
I upload a csv file and write to a table in BigQuery.
I need to include code that only that csv file can be saved in the table if there are 5 rows in the csv. If there are not 5 rows, stop the process.
code
with…

dnvrequest
- 3
- 2
0
votes
1 answer
For loop is skipped when iterating through CSV
So I have a program that reads a CSV file and performs some computations with the data before outputting it to a separate file. It was working fine yesterday, but when I came back it the program terminates without ever calling the for loop that…

Fiach ONeill
- 155
- 13
0
votes
0 answers
Find particular Cell value in CSV based on it's Header and it's corresponding value in the same row
I want to read specific Value from a csv file and take that value to process it further. I need to find the value based on it's header name and another value in the same row.
Example: Let's say I have a CSV file with below data
I need to find JSON…

ex-ninja
- 59
- 2
0
votes
0 answers
Read file names from csv data if not found exit the loop[Batch Script]
I want to read each and every line from my csv file in Batch file,
Here I am searching for employeeid in D:\parameters.csv, and a csv file with that name should be present in the directory:
csv file content:
Employee1,Alex
Employee2,Tariq
and I…

Aquaman
- 43
- 5
0
votes
0 answers
Unable to display csv file output at API endpoint
I have just started working on Flask and Python. I am building an API server in which I am trying to read a csv file and display the output of csv file on /osdata at port 8080.
There might be some issue in returning the data from function. Any help…

Geekshade
- 29
- 1
- 5
0
votes
1 answer
Problem printing a CSV file with pandas in python
I have school project to submit by Sunday and I have a problem here, CSV file
import pandas as PD
DF=PD.read_csv('C:\New folder\Book4.csv')
print(DF)
This isn't the entire code but this part is the only issue. I have 4 CSV files in total and only…

Varun
- 1
- 2
0
votes
2 answers
HashMap keeps repeating every previous value SELENIUM, JAVA
i have a list of urls and i am opening each line in a browser and then collecting some values into HashMap. When i print the values collected in HashMap, i see that it
repeats every previous value. what am i doing wrong?
here is what the url look…

e-Tester
- 53
- 5
0
votes
1 answer
CwvReader not loading lines starting with #
I'm trying to load a text file (.csv) into a SQL Server database table. Each line in the file is supposed to be loaded into a single column in the table. I find that lines starting with "#" are skipped, with no error. For example, the first two of…

JQW
- 13
- 3
0
votes
1 answer
how do i create a list from csv contents and then search within that list
im trying to read a csv file in python, then save the contents of csv file into list so that i can then search within that list to see if it matches the input from the user.
here is what i have so far . my code keeps skipping to the else block even…

9090
- 1
0
votes
2 answers
Fetching particular rows of a csv file where date matches as entered by user?
enter image description herei have a csv file like
Slot object
Name object
Plate object
Date_of_reg datetime64[ns]
dtype: object
I was working on a parking program that can give person data…

DOMINATOR X
- 21
- 3