소개
I am an Engineer. I completed my engineering in Computer Science & Engineering. I am a Web & App Developer. I like playing cricket and volleyball. I also enjoy exploring new places, reading books, and watching movies.
게시글
질문&답변
2023.09.19
자바 클래스 선언 오류
Well, here is the simple example how to declare class in Java.public class Person { // Class members (fields, methods, constructors, etc.) go here // Example field (instance variable) private String name; // Example constructor public Person(String name) { this.name = name; } // Example method public void sayHello() { System.out.println("Hello, my name is " + name); }}Thanks
- 0
- 1
- 231
질문&답변
2023.07.15
Python: Select Interpreter
Hello, this is Gulshan NegiWell, it may be because of incorrect Python path settings, a missing Python extension, workspace-specific settings overriding the interpreter selection, working with virtual environments, or an incompatible Python version. To fix this issue, you can verify that Python 3.8.5 is properly installed on your system by running the command "python --version" in the command line. Thanks
- 0
- 2
- 291
질문&답변
2023.06.21
df.sum() 과 sum(df) 차이가 뭔가요?
Hello this is Gulshan NegiWell, I search about it on internet and in short I can say.The main difference between df.sum() and sum(df) is their usage and the objects they operate on.df.sum() is a pandas DataFrame method that calculates the sum of each column by default. It returns a new pandas Series object containing the column-wise sums. It provides flexibility in specifying the axis of summation and handling missing or non-numeric values appropriately.On the other hand, sum(df) is a built-in Python function that attempts to iterate over the columns of a data frame and calculate their sum. However, this usage might not work as intended because DataFrames are not inherently iterable in the same way as Python lists or tuples. Thanks
- 0
- 2
- 808