Questions tagged [read-data]
130 questions
0
votes
1 answer
Pandas using stack or melt(using columns as rows) with multiple rows as column header
I need to use the melt function(pandas) in order to turn my data table into a 1-dimensional format, but I have columns with two rows, and based on my research I had to use multi indexing for defining those rows as columns.
for instance:
df.columns =…

MerveD
- 57
- 1
- 8
0
votes
2 answers
Saving Multiple files in Python
I am trying to create a new file each time the following runs. At the moment it creates 1 file and just overwrites it. Is there a to make it not overwrite and create a new file for each loop?
import xml.etree.ElementTree as ET
import time
import…

Mayamiko
- 105
- 1
- 1
- 8
0
votes
0 answers
Reading a txt file separated by "¬" in R
I'm trying to read a txt file in R with read.table. The data is separated with an ¬, but I have a problem with all the column names and the data read, I think it doesn't properly recognize that character.
data <- read.table(file="SB11_20191.TXT",…

Fabián Pallares
- 3
- 2
0
votes
1 answer
Reading data from Firestore in Swift
I am currently developing an IOS app, and I need a database! I've chosen the google firestore! I need to read some fields I create that have subfields!
Something like…

Stavros Klaoudatos
- 35
- 7
0
votes
0 answers
Read data from xlsx file with java
This is code to read data from an Excel file in Java and I have a problem with switch case statement which is:
duplicate case label
an enum switch case label must be unqualified name of enumeration constant".
Please tell me, what's the problem…

Etitep Linda
- 1
- 1
0
votes
1 answer
SwiftUI and Firestore - logic for reading multiple documents from different collections at startup
I'm using Firebase Firestore in my SwiftUI app project. At the start of the app, I want to read multiple documents from various collections.
Let's say I have collection A (1 document), B (2 documents) and C (4 documents). The data in the documents…

ediheld
- 233
- 3
- 13
0
votes
0 answers
How to read data from Real time database firebase using flutter with a complicated JSON tree
I am working on a flutter app and I found obstacles on how to read product_name and price from Firebase and display them in list
I tried this code but it returns the whole JSON tree as a Text
class _BeveragesProductsState extends…

FireCoder
- 1
- 1
0
votes
0 answers
Trigger Snackbar on external file creation/update
I am a newbie. in Angular, I have implemented a snackbar where click event triggers it for 3 seconds. This however is not what I exactly need. I am to receive values from a Python code in JSON/text form. As soon as the file is recieved/changed, it…

Muhammad Asad
- 55
- 7
0
votes
0 answers
function of Inserting Data from File (.csv) to Variables Does not work
C++ Code
Basically i am trying to take input from a file and store the data in variables, But i am unable to do that because each time i compile this code it compiles successfully but gives a runtime error.(Right Now i have just Data of 3 Students,…

Usman
- 14
- 3
0
votes
1 answer
Cplex: How to read different data input from dat.file in a for loop
I am stuck with a flow control problem and failed to get a way out from the given CPLEX examples. I want to solve the optimization problem for 16 times, and the only thing that differs is the input of demand. (Because we have trouble running the…

xz284
- 3
- 1
0
votes
2 answers
Get Value of specific Column while Login (C# Mysql)
I am trying to make a login at the moment. I watched some videos and found a good way. Every user has an id, Username and Password. I want to get the id of the user who has just been logged in and save it in an Integer. I also tried it with an…

kekstime
- 1
- 3
0
votes
2 answers
Reading text file with abnormal delimitor
I am using an algorithm to lemmatize a text vector. The output is a .txt file stored in the way shown in the picture below.
The original word is listed in the first column, whilst the various lemmas are listed in the second column, followed by…

Oda Ned
- 47
- 6
0
votes
2 answers
Reading data using regular expression
For my project, I need to read file and match it with my constants and once matches, need to store them in a dictionary. I am going to show a sample of my data and what I have so far below.
My data:
TIMESTAMP: 1579051725…

r_e
- 242
- 4
- 14
0
votes
0 answers
NullPointer Exception Error when i am trying to read from AWS Dyanamodb in Android?
I am trying to load Phone Number as a string from Dynamodb but it is showing NullPointer Error
Here is My Activity Code in which i am trying to Log the data
public class TokenActivity extends Activity {
DynamoDBMapper dynamoDBMapper;
…

Laman Ansari
- 39
- 1
- 7
0
votes
1 answer
Get Data From Mysql Database to Android
I am trying to get user_details from mysql to my android applicaion. For this I am posting data from android and getting the values by $_POST['mobile'] and $_POST['usertype'] method in my php page. To check if data is posting or not I have tried…

Mithu
- 665
- 1
- 8
- 38