15,743,299 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View Javascript questions
View C++ questions
View Python questions
View Java questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by Member 14991075 (Top 11 by date)
Member 14991075
3-Mar-23 2:19am
View
Deleted
ok thank you, but there is a problem. I would like to set a for column 1 and b for column 2 with the use of pandas library.
Which command should I use? I tried
import pandas as pd
filename = 'input_text.txt'
df = pd.read_csv(filename, sep='\t',usecols=[0,1])
print(df)
a = df.column[1]
but no use...
Member 14991075
2-Mar-23 12:38pm
View
ok how to set a for column 1, and b for column 2?
Member 14991075
4-Jan-22 8:58am
View
I use command
open(7,file='testdata.txt',status='old')
It is no use?
testdata.txt is my input file
Member 14991075
4-Jan-22 8:49am
View
I would like to check if the commands of my code read my data of my input file. But this code show one 1x1 column with zeros (0) and do not show the data of the first column of my input file
Member 14991075
4-Jan-22 8:09am
View
The problem is that I have a file with 14 columns and 644 lines. I use these commands but my .exe file does not showing what I would like
I give you my code:
parameter (len=644) ! lines
dimension A(len,14) !rows
C real IMM, lat, lon
character header*110,Var1(len)*4,Var2(len)*8,Var3(len)*8
+ ,Var4(len)*8,Var5(len)*8,Var6(len)*8,Var7(len)*8,Var8(len)*8,Var9(len)*8,
+ ,Var10(len)*8, Var11(len)*8,Var12(len)*8,Var13(len)*8,Var14(len)*8,header_append*97
open(7,file='testdata.txt',status='old')
open(8,file='EX-1.out',status='unknown')
do i=1,len
write(*,5) A(i,1)
end do
5 format(2x,f3.1)
do i=1,ip
write(*,5) A(i,1)
end do
stop
end
Could you please help me?
Member 14991075
30-Dec-21 8:05am
View
ok thank you, but the point is that the first line in my file includes three values separated with comma (,) (i.e. 1,2,3 etc.) In this case which commanmd should I use?
Member 14991075
13-Nov-20 3:20am
View
I know, but I am reading so much that I have confused. Could you please tell me what to in order to finish my code?
Member 14991075
12-Nov-20 11:56am
View
I just did it
Member 14991075
12-Nov-20 11:05am
View
This message refer to line
IA=3.66*log10(A(i)/66)+5.5 (line 14)
Member 14991075
12-Nov-20 10:47am
View
ok, I tried this but it shows me:
NameError: name 'IA' is not defined (IA is the equation I show you in my code solution above)
Member 14991075
12-Nov-20 9:06am
View
Excuse me , I have tried your solution but command window shows me:
TypeError: cannot do label indexing on <class 'pandas.core.indexes.range.rangeindex'=""> with these indexers [122.59] of <class 'float'="">
Show More