most_rated = pd.DataFrame(["135085","132825","135032","135052","132834"], index=np.arange(5), columns['placeID'])
This code is not working, instead showing this error.
Try this.
most_rated = pd.DataFrame({"135085","132825","135032","135052","132834"}, index=np.arange(5), columns=["placeID"])
So the problem is that you've got a keyword
argument, that is, one that starts with arg_name=
before a positional
argument - that is, one that doesn't start with a arg_name=
. In this case, it's that you have index=np.arange(5)
before the final argument, columns['placeID']
. You need to specify whichever positional
arguments you want before ANY keyword
arguments.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.