i want to cut all the columns of Data Frame. When I print the result it show good result, but when I want to assign those values in new data frame it returns NaNs.example of code
Asked
Active
Viewed 46 times
-2
-
3Please don't just give screenshots of code, it should be included in your question as properly formatted text. Please see [How to make good reproducible pandas examples](https://stackoverflow.com/questions/20109391/how-to-make-good-reproducible-pandas-examples) and [edit] your question appropriately. – roganjosh Aug 31 '19 at 09:24
-
Provide snippets of input & output data. That will help us provide the appropriate solution (sometimes, there may be a better way of doing it than the way you are trying to do) – moys Aug 31 '19 at 09:29
-
Thank you. This was the first question, I wil try to make better one next time. :) – L J Aug 31 '19 at 09:38
1 Answers
0
You need to paste your code here for understanding proper solution of problem.
you can try to add one line of code:
slc=slc.reset_index(drop=True)

Edward
- 563
- 3
- 11
-
thank you verry much. I will make better question next time, this was the first one. – L J Aug 31 '19 at 09:38