Bro you nailed it specially converting df to json and passing indent and Orient inside to json method.. I was stuck bec my json was reading the row indexes as well and I am new to python this helped me to make a very neat json. Subscribed to the channel keep doing the good work
@@DataEngUncomplicated I passed all the parameters as you mentioned in the video. My CSV did get convert to JSON but it wasn't in as formats as yours because of this indent error.
Thank you for this very useful video!
You're welcome!
Bro you nailed it specially converting df to json and passing indent and Orient inside to json method.. I was stuck bec my json was reading the row indexes as well and I am new to python this helped me to make a very neat json. Subscribed to the channel keep doing the good work
Thanks Karan I'm glad you found this helpful! Thanks for subscribing!
Super sir excellent teaching
Thanks! Much appreciated!
you can put the r'f:\ code inside
df = pd.read_csv(r'f:\ etc) for example no need for two lines of code
Hi Tyler, correct! I tried to make the code more readable for the video so I separated it out.
good!!!
Hey, I'm getting this erro while converting to json please tell!
TypeError: to_json() got an unexpected keyword argument 'indent'
Hi Umar, it sounds like you have an invalid parameter that you passed
@@DataEngUncomplicated I passed all the parameters as you mentioned in the video. My CSV did get convert to JSON but it wasn't in as formats as yours because of this indent error.